Skip to content

Conversation

cybermerc
Copy link

Nice library, cleaned it up for some pep8 issues and added socket encode/decode so the it works on python3.

@mdebbar
Copy link
Owner

mdebbar commented Apr 5, 2016

Thanks for the PR, @cybermerc! Would you mind cleaning the PR by using a 2-space indentation? That way, people can see what exactly you are changing.

recv_size = socket.recv_into(view[next_offset:], total - next_offset)
next_offset += recv_size
try:
deserialized = json.loads(view.tobytes().decode())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be decode('utf-8') like the others?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants