diff options
author | Ask Solem <ask@celeryproject.org> | 2015-10-19 14:17:35 -0700 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2015-10-19 14:17:35 -0700 |
commit | e6932b9d541df5ee89cddd171f0b0aa8ba636d0e (patch) | |
tree | 1c8b5c970587f8ddd66bafaed294e742a782cf72 /amqp/connection.py | |
parent | 87c1fccf6fe9aa948d247c3655157f0e64e84de3 (diff) | |
download | py-amqp-e6932b9d541df5ee89cddd171f0b0aa8ba636d0e.tar.gz |
Python 2.7ism
Diffstat (limited to 'amqp/connection.py')
-rw-r--r-- | amqp/connection.py | 2 |
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, |