Initialize UserDict.data in the constructor.
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Mar 2009 04:28:21 +0000 (04:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Mar 2009 04:28:21 +0000 (04:28 -0000)
svn path=/main/trunk/; revision=12816

pym/portage/cache/mappings.py

index 77923b46230a49bfcb10aaf659458d74216536f9..066927ac146a8ec942b69afe3a97a3f8898daa04 100644 (file)
@@ -148,6 +148,8 @@ class UserDict(MutableMapping):
 
        def __init__(self, *args, **kwargs):
 
+               self.data = {}
+
                if len(args) > 1:
                        raise TypeError(
                                "expected at most 1 positional argument, got " + \