summaryrefslogtreecommitdiff
path: root/kombu/transport/SLMQ.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2014-05-19 22:27:36 +0100
committerAsk Solem <ask@celeryproject.org>2014-05-19 22:27:36 +0100
commit55197ee34198b2ccbe8ccc57bac336b9dd42e31b (patch)
treef458b454ceed01cf0c408a9e3b2305c456a78bcc /kombu/transport/SLMQ.py
parent4b35ccab1fc614c766301d09ac07f0d6d799fe40 (diff)
downloadkombu-55197ee34198b2ccbe8ccc57bac336b9dd42e31b.tar.gz
master now depends on Python 2.7
Diffstat (limited to 'kombu/transport/SLMQ.py')
-rw-r--r--kombu/transport/SLMQ.py5
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):