Skip to content
Snippets Groups Projects
Commit 5c6ff2e4 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

py33333

parent f9e2da89
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,9 @@ class Cluster(object): ...@@ -128,6 +128,9 @@ class Cluster(object):
else: else:
exchange = exchange.encode('utf8') exchange = exchange.encode('utf8')
if isinstance(routing_key, six.text_type):
routing_key = routing_key.encode('utf8')
if tx is not None: # confirm is a drop-in replacement. tx is unfortunately named if tx is not None: # confirm is a drop-in replacement. tx is unfortunately named
warnings.warn(u'Use confirm kwarg instead', DeprecationWarning) warnings.warn(u'Use confirm kwarg instead', DeprecationWarning)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment