fix tutorial python server
authorChristopher Piro <cpiro@apache.org>
Wed, 2 May 2012 19:33:47 +0000 (19:33 +0000)
committerChristopher Piro <cpiro@apache.org>
Wed, 2 May 2012 19:33:47 +0000 (19:33 +0000)
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

index 63f993b..cf2aab2 100755 (executable)
@@ -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()