Menu

#10 common python 3 string/bytes error

open
nobody
None
5
2013-01-13
2013-01-13
Anonymous
No

on line 215 there is:
req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr
for obvious reason, it should be replaced by:
req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr.encode()

Discussion


Log in to post a comment.

MongoDB Logo MongoDB