Permalink
Browse files

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
  • Loading branch information...
1 parent 6ad473f commit 860b8c9cfbe99c5d3ba07fffbcb5c44894312953 Christopher Piro committed May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tutorial/py/PythonServer.py
@@ -81,7 +81,7 @@ def zip(self):
handler = CalculatorHandler()
processor = Calculator.Processor(handler)
-transport = TSocket.TServerSocket(9090)
+transport = TSocket.TServerSocket(port=9090)
tfactory = TTransport.TBufferedTransportFactory()
pfactory = TBinaryProtocol.TBinaryProtocolFactory()

0 comments on commit 860b8c9

Please sign in to comment.