diff options
author | cclauss <cclauss@bluewin.ch> | 2017-09-01 17:40:29 +0200 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-09-24 06:04:15 -0700 |
commit | 4bd3682c79bcbd793f066bfab4d9bb1c1437b722 (patch) | |
tree | 106691a557c03bebf95aca7709c844027e225efc /lib/nodejs | |
parent | 9ce1fd9aee00e15abcd81b671594881ee9e1e5c3 (diff) | |
download | thrift-4bd3682c79bcbd793f066bfab4d9bb1c1437b722.tar.gz |
THRIFT-4309: Python print() function
Client: py
This closes #1339
Diffstat (limited to 'lib/nodejs')
-rw-r--r-- | lib/nodejs/examples/httpServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/nodejs/examples/httpServer.py b/lib/nodejs/examples/httpServer.py index b8ba5861f..b712fcd7f 100644 --- a/lib/nodejs/examples/httpServer.py +++ b/lib/nodejs/examples/httpServer.py @@ -7,7 +7,7 @@ from thrift.server import THttpServer class HelloSvcHandler: def hello_func(self): - print "Hello Called" + print("Hello Called") return "hello from Python" processor = HelloSvc.Processor(HelloSvcHandler()) @@ -16,4 +16,3 @@ port = 9090 server = THttpServer.THttpServer(processor, ("localhost", port), protoFactory) print "Python server running on port " + str(port) server.serve() - |