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 |