THRIFT-3506 Eliminate old style classes from library code
Client: Python
Patch: Nobuaki Sukegawa
This closes #758
diff --git a/lib/py/src/protocol/TBinaryProtocol.py b/lib/py/src/protocol/TBinaryProtocol.py
index f92f558..43cb5a4 100644
--- a/lib/py/src/protocol/TBinaryProtocol.py
+++ b/lib/py/src/protocol/TBinaryProtocol.py
@@ -223,7 +223,7 @@
return s
-class TBinaryProtocolFactory:
+class TBinaryProtocolFactory(object):
def __init__(self, strictRead=False, strictWrite=True):
self.strictRead = strictRead
self.strictWrite = strictWrite
@@ -255,6 +255,6 @@
pass
-class TBinaryProtocolAcceleratedFactory:
+class TBinaryProtocolAcceleratedFactory(object):
def getProtocol(self, trans):
return TBinaryProtocolAccelerated(trans)