mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-05 09:02:13 +00:00
Remove a deep copy
This commit is contained in:
parent
36b3b75b21
commit
31ade3b3e9
@ -76,15 +76,7 @@ class JsonEncodedObject(object):
|
|||||||
if k in self.valid_keys and k not in self.internal_keys
|
if k in self.valid_keys and k not in self.internal_keys
|
||||||
}
|
}
|
||||||
d.update(self.unrecognized_keys)
|
d.update(self.unrecognized_keys)
|
||||||
return copy.deepcopy(d)
|
return d
|
||||||
|
|
||||||
def get_full_dict(self):
|
|
||||||
d = {
|
|
||||||
k: _encode(v) for (k, v) in self.__dict__.items()
|
|
||||||
if k in self.valid_keys or k in self.internal_keys
|
|
||||||
}
|
|
||||||
d.update(self.unrecognized_keys)
|
|
||||||
return copy.deepcopy(d)
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "(%s, %s)" % (self.__class__.__name__, repr(self.__dict__))
|
return "(%s, %s)" % (self.__class__.__name__, repr(self.__dict__))
|
||||||
|
Loading…
Reference in New Issue
Block a user