From: Christopher Piro Date: Wed, 2 May 2012 19:33:47 +0000 (+0000) Subject: fix tutorial python server X-Git-Tag: 0.9.1~388 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=860b8c9cfbe99c5d3ba07fffbcb5c44894312953;p=common%2Fthrift.git 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 --- 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()