mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Allow deepcopies of NamespacedDictWrapper in python 2.6
This commit is contained in:
parent
5d81fa39f0
commit
69c0f46891
@ -191,3 +191,7 @@ class NamespacedDictWrapper(collections.MutableMapping, dict):
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._dict())
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
return type(self)(copy.deepcopy(self.__dict, memo),
|
||||
copy.deepcopy(self.pre_keys, memo))
|
||||
|
Loading…
Reference in New Issue
Block a user