diff options
author | Ask Solem <ask@celeryproject.org> | 2014-05-19 22:27:36 +0100 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2014-05-19 22:27:36 +0100 |
commit | 55197ee34198b2ccbe8ccc57bac336b9dd42e31b (patch) | |
tree | f458b454ceed01cf0c408a9e3b2305c456a78bcc /kombu/transport/SLMQ.py | |
parent | 4b35ccab1fc614c766301d09ac07f0d6d799fe40 (diff) | |
download | kombu-55197ee34198b2ccbe8ccc57bac336b9dd42e31b.tar.gz |
master now depends on Python 2.7
Diffstat (limited to 'kombu/transport/SLMQ.py')
-rw-r--r-- | kombu/transport/SLMQ.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kombu/transport/SLMQ.py b/kombu/transport/SLMQ.py index 449bc2fb..61756a7e 100644 --- a/kombu/transport/SLMQ.py +++ b/kombu/transport/SLMQ.py @@ -27,8 +27,9 @@ except ImportError: # pragma: no cover get_client = ResponseError = None # noqa # dots are replaced by dash, all other punctuation replaced by underscore. -CHARS_REPLACE_TABLE = dict( - (ord(c), 0x5f) for c in string.punctuation if c not in '_') +CHARS_REPLACE_TABLE = { + ord(c): 0x5f for c in string.punctuation if c not in '_' +} class Channel(virtual.Channel): |