summaryrefslogtreecommitdiffstats
path: root/module/remote/json_converter.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/json_converter.py')
-rw-r--r--module/remote/json_converter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/remote/json_converter.py b/module/remote/json_converter.py
index 5b85f30cd..256674c34 100644
--- a/module/remote/json_converter.py
+++ b/module/remote/json_converter.py
@@ -7,9 +7,9 @@ except ImportError:
import json
-import ttypes
-from ttypes import BaseObject
-from ttypes import ExceptionObject
+import apitypes
+from apitypes import BaseObject
+from apitypes import ExceptionObject
# compact json separator
separators = (',', ':')
@@ -29,7 +29,7 @@ class BaseEncoder(json.JSONEncoder):
def convert_obj(dct):
if '@class' in dct:
- cls = getattr(ttypes, dct['@class'])
+ cls = getattr(apitypes, dct['@class'])
del dct['@class']
return cls(**dct)