We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d453087 + 9e0109b commit ecdb09dCopy full SHA for ecdb09d
python/source/json.py
@@ -32,7 +32,7 @@ def _make_json(dict, instance):
32
if value in _ignore_objects: continue
33
if key.startswith('_'): continue
34
if callable(value): continue
35
- if isinstance(value, collections.Hashable) and value in _rename_objects:
+ if isinstance(value, collections.abc.Hashable) and value in _rename_objects:
36
json[_rename_objects[value]] = _to_json(value, instance)
37
else:
38
json[key] = _to_json(value, instance)
0 commit comments