Commit dc35342a authored by Marco Mariani's avatar Marco Mariani Committed by Cédric de Saint Martin

unserialize values _after_ loading _data (so they are not overwritten)

parent cda6fca6
...@@ -1371,11 +1371,11 @@ class Options(UserDict.DictMixin): ...@@ -1371,11 +1371,11 @@ class Options(UserDict.DictMixin):
def copy(self): def copy(self):
result = self._raw.copy() result = self._raw.copy()
result.update(self._cooked)
result.update(self._data)
for key, value in result.iteritems(): for key, value in result.iteritems():
if value.startswith(SERIALISED_VALUE_MAGIC): if value.startswith(SERIALISED_VALUE_MAGIC):
result[key] = loads(value) result[key] = loads(value)
result.update(self._cooked)
result.update(self._data)
return result return result
def _call(self, f): def _call(self, f):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment