Author: cpiro
Date: Wed May 2 19:33:47 2012
New Revision: 1333163
URL: http://svn.apache.org/viewvc?rev=1333163&view=rev
Log:
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
Modified:
thrift/trunk/tutorial/py/PythonServer.py
Modified: thrift/trunk/tutorial/py/PythonServer.py
URL:
http://svn.apache.org/viewvc/thrift/trunk/tutorial/py/PythonServer.py?rev=1333163&r1=1333162&r2=1333163&view=diff
==============================================================================
--- thrift/trunk/tutorial/py/PythonServer.py (original)
+++ thrift/trunk/tutorial/py/PythonServer.py Wed May 2 19:33:47 2012
@@ -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()