diff options
author | henrique <henrique@apache.org> | 2013-11-08 19:06:21 +0100 |
---|---|---|
committer | henrique <henrique@apache.org> | 2013-11-08 19:06:21 +0100 |
commit | 3e25e5e62ae173ad8a629b1673fba8a1853feeca (patch) | |
tree | e1b5e7cd5f12ebec636a323f77c415ed7052f9b9 /lib | |
parent | f4e6e62ea091b94322ecc99756269dbee1c06380 (diff) | |
download | thrift-3e25e5e62ae173ad8a629b1673fba8a1853feeca.tar.gz |
Python Tornado TTornadoServer base class change
Patch: Bryan Pham
Diffstat (limited to 'lib')
-rw-r--r-- | lib/py/src/TTornado.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/py/src/TTornado.py b/lib/py/src/TTornado.py index af309c3d9..d90f6728a 100644 --- a/lib/py/src/TTornado.py +++ b/lib/py/src/TTornado.py @@ -27,7 +27,7 @@ from thrift.transport.TTransport import TTransportException from tornado import gen from tornado import iostream -from tornado import netutil +from tornado import tcpserver class TTornadoStreamTransport(TTransport.TTransportBase): @@ -125,7 +125,7 @@ class TTornadoStreamTransport(TTransport.TTransportBase): self.stream.write(buf, callback) -class TTornadoServer(netutil.TCPServer): +class TTornadoServer(tcpserver.TCPServer): def __init__(self, processor, iprot_factory, oprot_factory=None, *args, **kwargs): super(TTornadoServer, self).__init__(*args, **kwargs) |