Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
proton-0.6
-
None
Description
When passing in a unicode string to Messenger.subscribe(), an error results.
Run this code to reproduce:
from proton import Messenger
mng = Messenger
mng.start()
unicode_subscribe_string = unicode("amqp://localhost/my_queue")
mng.subscribe(unicode_subscribe_string)
Resultant Error:
File "proton.py", line 447, in subscribe
sub_impl = pn_messenger_subscribe(self._mng, source)
TypeError: in method 'pn_messenger_subscribe', argument 2 of type 'char const *'
I expected unicode strings to behave the same as non-unicode strings