Initialize UserDict.data in the constructor. (trunk r12816)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 07:44:41 +0000 (07:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 07:44:41 +0000 (07:44 -0000)
svn path=/main/branches/2.1.6/; revision=13048

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 " + \