From 7a6e7cc45b9afe799770313a66c4211d1986ff30 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Mon, 13 Jul 2020 16:58:06 +0300 Subject: pyupgrade --- examples/hello_publisher.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/hello_publisher.py') diff --git a/examples/hello_publisher.py b/examples/hello_publisher.py index e6b07361..d6a49048 100644 --- a/examples/hello_publisher.py +++ b/examples/hello_publisher.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, unicode_literals - import datetime from kombu import Connection @@ -7,7 +5,7 @@ from kombu import Connection with Connection('amqp://guest:guest@localhost:5672//') as conn: simple_queue = conn.SimpleQueue('simple_queue') - message = 'helloworld, sent at {0}'.format(datetime.datetime.today()) + message = f'helloworld, sent at {datetime.datetime.today()}' simple_queue.put(message) - print('Sent: {0}'.format(message)) + print(f'Sent: {message}') simple_queue.close() -- cgit v1.2.1