Commit 4cc3bba4 authored by Denis Bilenko's avatar Denis Bilenko

make example py3k compatible. This and previous patches by Damien Churchill.

parent 42a56843
...@@ -26,7 +26,7 @@ def echo(socket, address): ...@@ -26,7 +26,7 @@ def echo(socket, address):
break break
fileobj.write(line) fileobj.write(line)
fileobj.flush() fileobj.flush()
print "echoed", repr(line) print ("echoed %r" % line)
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment