Commit b09ee5c7 authored by Matias Guijarro's avatar Matias Guijarro

config/settings.py: bug fix: write_decorator_dict has to return a new dict

Otherwise the passed dictionary gets modified
parent c633d029
......@@ -96,8 +96,10 @@ def write_decorator_dict(func):
raise TypeError('can only be dict')
if values is not None:
new_dict = dict()
for k, v in values.iteritems():
values[k] = self._write_type_conversion(v)
new_dict[k] = self._write_type_conversion(v)
values = new_dict
return func(self, values, **keys)
return _write
......
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