projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix selftest telopt callback for Python 3.4
[mudpy.git]
/
mudpy
/
tests
/
selftest.py
diff --git
a/mudpy/tests/selftest.py
b/mudpy/tests/selftest.py
index
3b00b48
..
202778a
100644
(file)
--- a/
mudpy/tests/selftest.py
+++ b/
mudpy/tests/selftest.py
@@
-432,9
+432,9
@@
def option_callback(telnet_socket, command, option):
# 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
)
def main():
def main():