THRIFT-4778: fix inheritance for protocol factories
diff --git a/lib/py/src/protocol/TJSONProtocol.py b/lib/py/src/protocol/TJSONProtocol.py
index db2099a..1741702 100644
--- a/lib/py/src/protocol/TJSONProtocol.py
+++ b/lib/py/src/protocol/TJSONProtocol.py
@@ -18,7 +18,7 @@
#
from .TProtocol import (TType, TProtocolBase, TProtocolException,
- checkIntegerLimits)
+ TProtocolFactory, checkIntegerLimits)
import base64
import math
import sys
@@ -577,7 +577,7 @@
self.writeJSONBase64(binary)
-class TJSONProtocolFactory(object):
+class TJSONProtocolFactory(TProtocolFactory):
def getProtocol(self, trans):
return TJSONProtocol(trans)
@@ -671,7 +671,7 @@
self.writeJSONBase64(binary)
-class TSimpleJSONProtocolFactory(object):
+class TSimpleJSONProtocolFactory(TProtocolFactory):
def getProtocol(self, trans):
return TSimpleJSONProtocol(trans)