Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Fix Py2k method name type #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbr0wn
Copy link
Contributor

@mbr0wn mbr0wn commented Oct 20, 2017

The fix introduced in 227231f introduced another bug: By enabling
binary strings, Python 2 would serialize the method name as a binary
string, not UTF-8 as according to the standard.
An obvious way to make this fail is by running the server with Python 3
and the client with Python 2.

This conditionally converts strings to UTF-8 when using Python 2.

Signed-off-by: Martin Braun [email protected]

The fix introduced in 227231f introduced another bug: By enabling
binary strings, Python 2 would serialize the method name as a binary
string, not UTF-8 as according to the standard.
An obvious way to make this fail is by running the server with Python 3
and the client with Python 2.

This conditionally converts strings to UTF-8 when using Python 2.

Signed-off-by: Martin Braun <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant