diff options
author | mkaay <mkaay@mkaay.de> | 2011-12-08 18:40:55 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-12-08 18:40:55 +0100 |
commit | 12e0357c2fb7cf9aabb4744a8fed49426c21ba68 (patch) | |
tree | e1c9c3ffbe01aa5a346a3f1cb8dd5b894620f1cd /module/lib/thrift/transport/TSocket.py | |
parent | fixed deprecation warnings (diff) | |
download | pyload-12e0357c2fb7cf9aabb4744a8fed49426c21ba68.tar.xz |
fixed order consistence, fixed typo in json_app
Diffstat (limited to 'module/lib/thrift/transport/TSocket.py')
-rw-r--r-- | module/lib/thrift/transport/TSocket.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/lib/thrift/transport/TSocket.py b/module/lib/thrift/transport/TSocket.py index be6167802..4e0e1874f 100644 --- a/module/lib/thrift/transport/TSocket.py +++ b/module/lib/thrift/transport/TSocket.py @@ -151,8 +151,8 @@ class TServerSocket(TSocketBase, TServerTransportBase): self.handle = socket.socket(res[0], res[1]) self.handle.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - if hasattr(self.handle, 'set_timeout'): - self.handle.set_timeout(None) + if hasattr(self.handle, 'settimeout'): + self.handle.settimeout(None) self.handle.bind(res[4]) self.handle.listen(128) |