Skip to content

Commit

Permalink
Added unicode handling fix by MisterWil in PR invisibleroads#158
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakroma authored and Juho Hovila committed Aug 2, 2018
1 parent e140565 commit e0f8197
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ sdist
# Vim
*.sw[op]
*~
.idea
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
])
setup(
name='socketIO-client',
version='0.7.2',
version='0.7.4',
description='A socket.io client library',
long_description=DESCRIPTION,
license='MIT',
Expand Down
4 changes: 2 additions & 2 deletions socketIO_client/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ def _read_packet_length(content, content_index):
def _read_packet_text(content, content_index, packet_length):
while content.decode()[content_index] == ':':
content_index += 1
packet_text = content[content_index:content_index + packet_length]
return content_index + packet_length, packet_text
packet_text = content.decode()[content_index:content_index + packet_length]
return content_index + packet_length, packet_text.encode()

0 comments on commit e0f8197

Please sign in to comment.