diff options
| author | Omer Katz <omer.drow@gmail.com> | 2020-07-13 16:58:06 +0300 |
|---|---|---|
| committer | Omer Katz <omer.drow@gmail.com> | 2020-07-13 16:58:06 +0300 |
| commit | 7a6e7cc45b9afe799770313a66c4211d1986ff30 (patch) | |
| tree | 189c7fa2e7ca9835e14975093c12b7e5d3d8213b /examples/hello_consumer.py | |
| parent | 016f4accb634ebc3eb8fc66741f23552e5966ea7 (diff) | |
| download | kombu-7a6e7cc45b9afe799770313a66c4211d1986ff30.tar.gz | |
pyupgrade
Diffstat (limited to 'examples/hello_consumer.py')
| -rw-r--r-- | examples/hello_consumer.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/hello_consumer.py b/examples/hello_consumer.py index 71f40f13..e633e02d 100644 --- a/examples/hello_consumer.py +++ b/examples/hello_consumer.py @@ -1,11 +1,9 @@ -from __future__ import absolute_import, unicode_literals, print_function - from kombu import Connection # noqa with Connection('amqp://guest:guest@localhost:5672//') as conn: simple_queue = conn.SimpleQueue('simple_queue') message = simple_queue.get(block=True, timeout=1) - print('Received: {0}'.format(message.payload)) + print(f'Received: {message.payload}') message.ack() simple_queue.close() |
