summaryrefslogtreecommitdiffstats
path: root/utils_prog.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-10-08 11:49:38 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-10-08 16:43:16 +0200
commit984d7b96e786402641699ffd1351d6405ffa104c (patch)
tree73dad1ec2b3bd67e00186a95a9a1bb572260a211 /utils_prog.py
parent174130e11f28efa66a19cd6854612121d42cf021 (diff)
downloadclufter-984d7b96e786402641699ffd1351d6405ffa104c.tar.gz
clufter-984d7b96e786402641699ffd1351d6405ffa104c.tar.xz
clufter-984d7b96e786402641699ffd1351d6405ffa104c.zip
utils_prog: TweakedDict: fix returning copy of non-dict
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'utils_prog.py')
-rw-r--r--utils_prog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils_prog.py b/utils_prog.py
index 82c4c69..ca0ac79 100644
--- a/utils_prog.py
+++ b/utils_prog.py
@@ -85,7 +85,7 @@ class TweakedDict(MutableMapping):
ret = self._parent[key]
if (isinstanceexcept(ret, mutables, TweakedDict)
and any(getattr(p, '_notaint', False) for p in self.anabasis)):
- ret = ret.copy()
+ ret = type(ret)(ret)
return ret
@property