Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2110)

Unified Diff: boto/sqs/queue.py

Issue 8669001: Pull in upstream boto from github at bcb719937de9ac2851e632d62b777352029a6d55 (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « boto/sqs/connection.py ('k') | boto/storage_uri.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boto/sqs/queue.py
diff --git a/boto/sqs/queue.py b/boto/sqs/queue.py
index fe25f582a8453ef642a130052c9022a502f68389..afb100a340e13ba3b004afa5f01160a3cf031c5d 100644
--- a/boto/sqs/queue.py
+++ b/boto/sqs/queue.py
@@ -185,7 +185,7 @@ class Queue:
else:
return None
- def write(self, message):
+ def write(self, message, delay_seconds=None):
"""
Add a single message to the queue.
@@ -195,7 +195,7 @@ class Queue:
:rtype: :class:`boto.sqs.message.Message`
:return: The :class:`boto.sqs.message.Message` object that was written.
"""
- new_msg = self.connection.send_message(self, message.get_body_encoded())
+ new_msg = self.connection.send_message(self, message.get_body_encoded(), delay_seconds)
message.id = new_msg.id
message.md5 = new_msg.md5
return message
« no previous file with comments | « boto/sqs/connection.py ('k') | boto/storage_uri.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698