mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 12:08:32 +03:00
Remove FrozenEncoder
This commit is contained in:
parent
8133cdcc88
commit
58168498b0
1 changed files with 0 additions and 8 deletions
|
@ -46,11 +46,3 @@ def unfreeze(o):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return o
|
return o
|
||||||
|
|
||||||
|
|
||||||
class FrozenEncoder(json.JSONEncoder):
|
|
||||||
def default(self, o):
|
|
||||||
if isinstance(o, frozendict):
|
|
||||||
return dict(o)
|
|
||||||
|
|
||||||
return json.JSONEncoder(self, o)
|
|
||||||
|
|
Loading…
Reference in a new issue