Skip to content

Commit

Permalink
msgpack is not guaranteed to return keys as bytes objects in python 3…
Browse files Browse the repository at this point in the history
….x and up arskom#648
  • Loading branch information
plq committed Oct 30, 2020
1 parent 63957b3 commit 21c80dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyne/protocol/msgpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def gen_method_request_string(self, ctx):
"""

mrs, = ctx.in_body_doc.keys()
if not six.PY2:
if not six.PY2 and isinstance(mrs, bytes):
mrs = mrs.decode('utf8')

return '{%s}%s' % (self.app.interface.get_tns(), mrs)
Expand Down

0 comments on commit 21c80dd

Please sign in to comment.