From 860b8c9cfbe99c5d3ba07fffbcb5c44894312953 Mon Sep 17 00:00:00 2001 From: Christopher Piro Date: Wed, 2 May 2012 19:33:47 +0000 Subject: [PATCH] fix tutorial python server the port in TServerSocket's constructor should be passed by keyword; the first positional param is actually the hostname Reviewed By: dreiss git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333163 13f79535-47bb-0310-9956-ffa450edef68 --- tutorial/py/PythonServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/py/PythonServer.py b/tutorial/py/PythonServer.py index 63f993bc..cf2aab2e 100755 --- a/tutorial/py/PythonServer.py +++ b/tutorial/py/PythonServer.py @@ -81,7 +81,7 @@ class CalculatorHandler: handler = CalculatorHandler() processor = Calculator.Processor(handler) -transport = TSocket.TServerSocket(9090) +transport = TSocket.TServerSocket(port=9090) tfactory = TTransport.TBufferedTransportFactory() pfactory = TBinaryProtocol.TBinaryProtocolFactory() -- 2.17.1