Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 860b8c9cfbe99c5d3ba07fffbcb5c44894312953 1 parent 6ad473f
Christopher Piro authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tutorial/py/PythonServer.py
View
2  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()
Please sign in to comment.
Something went wrong with that request. Please try again.