Don't deep copy context dict values.

This commit is contained in:
Dmitry Kuzmenko 2016-06-09 11:49:18 +03:00
parent 06f249901a
commit 8e34d0a9c3

View file

@ -134,7 +134,7 @@ class ChildContextDict(collections.MutableMapping):
# merge self.global_data into self._data
for k, v in self.parent.global_data.iteritems():
if k not in self._data:
self._data[k] = copy.deepcopy(v)
self._data[k] = v
def __setitem__(self, key, val):
self._data[key] = val