Skip to content

Commit 81a0e91

Browse files
author
TAKANO Mitsuhiro
committed
python: fix echoserver working on Python 2.7.2
see also msgpack-rpc/msgpack-rpc#45 Traceback (most recent call last): File "echoserver.py", line 51, in <module> print "Serving on localhost:%d\n" % (port,) TypeError: %d format: a number is required, not tuple
1 parent 8f9f9d5 commit 81a0e91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example/echoserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ def serve(daemon=False):
4848

4949
if __name__ == '__main__':
5050
port = serve(False)
51-
print "Serving on localhost:%d\n" % (port,)
51+
print "Serving on localhost:%d\n" % port[1]

0 commit comments

Comments
 (0)