THRIFT-3506 Eliminate old style classes from library code
Client: Python
Patch: Nobuaki Sukegawa
This closes #758
diff --git a/lib/py/src/protocol/TProtocol.py b/lib/py/src/protocol/TProtocol.py
index 1d703e3..be2fcea 100644
--- a/lib/py/src/protocol/TProtocol.py
+++ b/lib/py/src/protocol/TProtocol.py
@@ -39,7 +39,7 @@
self.type = type
-class TProtocolBase:
+class TProtocolBase(object):
"""Base class for Thrift protocol driver."""
def __init__(self, trans):
@@ -445,6 +445,6 @@
"i64 requires -9223372036854775808 <= number <= 9223372036854775807")
-class TProtocolFactory:
+class TProtocolFactory(object):
def getProtocol(self, trans):
pass