summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/python/pki/encoder.py')
-rw-r--r--base/common/python/pki/encoder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/common/python/pki/encoder.py b/base/common/python/pki/encoder.py
index 84bf32506..6d5725f0f 100644
--- a/base/common/python/pki/encoder.py
+++ b/base/common/python/pki/encoder.py
@@ -32,6 +32,7 @@ class CustomTypeEncoder(json.JSONEncoder):
when-instance-variable-name-is-same-as-method-name
"""
# pylint: disable=E0202
+
def default(self, obj):
for k, v in TYPES.iteritems():
if isinstance(obj, v):
@@ -56,7 +57,7 @@ class CustomTypeEncoder(json.JSONEncoder):
return new_dict
-def CustomTypeDecoder(dct):
+def CustomTypeDecoder(dct): # nopep8
if len(dct) == 1:
type_name, value = dct.items()[0]
if type_name in TYPES: