summaryrefslogtreecommitdiff
path: root/amqp/connection.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2015-10-19 14:17:35 -0700
committerAsk Solem <ask@celeryproject.org>2015-10-19 14:17:35 -0700
commite6932b9d541df5ee89cddd171f0b0aa8ba636d0e (patch)
tree1c8b5c970587f8ddd66bafaed294e742a782cf72 /amqp/connection.py
parent87c1fccf6fe9aa948d247c3655157f0e64e84de3 (diff)
downloadpy-amqp-e6932b9d541df5ee89cddd171f0b0aa8ba636d0e.tar.gz
Python 2.7ism
Diffstat (limited to 'amqp/connection.py')
-rw-r--r--amqp/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/amqp/connection.py b/amqp/connection.py
index 37c2345..9b00e56 100644
--- a/amqp/connection.py
+++ b/amqp/connection.py
@@ -119,7 +119,7 @@ class Connection(AbstractChannel):
spec.method(spec.Connection.Unblocked),
spec.method(spec.Connection.CloseOk),
])
- _METHODS = dict((m.method_sig, m) for m in _METHODS)
+ _METHODS = {m.method_sig: m for m in _METHODS}
connection_errors = (
ConnectionError,