summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b7a0d21)
Python 3.4 is unable to handle formatted bytestrings. Replace two
occurrences in the Telnet option callback handler in the selftest
script to use concatenation operators instead.
# any response to avoid endlessly looping
pass
elif command in (telnetlib.DO, telnetlib.DONT):
# any response to avoid endlessly looping
pass
elif command in (telnetlib.DO, telnetlib.DONT):
- telnet_socket.send(b"%s%s%s" % (telnetlib.IAC, telnetlib.WONT, option))
+ telnet_socket.send(telnetlib.IAC + telnetlib.WONT + option)
elif command in (telnetlib.WILL, telnetlib.WONT):
elif command in (telnetlib.WILL, telnetlib.WONT):
- telnet_socket.send(b"%s%s%s" % (telnetlib.IAC, telnetlib.DONT, option))
+ telnet_socket.send(telnetlib.IAC + telnetlib.DONT + option)