summaryrefslogtreecommitdiff
path: root/examples/simple_eventlet_send.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple_eventlet_send.py')
-rw-r--r--examples/simple_eventlet_send.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/simple_eventlet_send.py b/examples/simple_eventlet_send.py
index 2998fe37..9a753e7a 100644
--- a/examples/simple_eventlet_send.py
+++ b/examples/simple_eventlet_send.py
@@ -6,7 +6,6 @@ You can use `simple_receive.py` (or `complete_receive.py`) to receive the
message sent.
"""
-from __future__ import absolute_import, unicode_literals
import eventlet
@@ -30,7 +29,7 @@ def send_many(n):
with connection.SimpleQueue('kombu_demo') as queue:
def send_message(i):
- queue.put({'hello': 'world%s' % (i,)})
+ queue.put({'hello': f'world{i}'})
pool = eventlet.GreenPool(10)
for i in range(n):