diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-10 04:28:21 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-10 04:28:21 +0000 |
commit | 7f1562aa8272e91a01f951fbab804a006a3324f1 (patch) | |
tree | 50f9c5ea91d895b2332fc843573c8f7076b1413e | |
parent | c4a095aee57f80695b7637385623f5fdcc8d44dc (diff) | |
download | portage-7f1562aa8272e91a01f951fbab804a006a3324f1.tar.gz portage-7f1562aa8272e91a01f951fbab804a006a3324f1.tar.bz2 portage-7f1562aa8272e91a01f951fbab804a006a3324f1.zip |
Initialize UserDict.data in the constructor.
svn path=/main/trunk/; revision=12816
-rw-r--r-- | pym/portage/cache/mappings.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py index 77923b462..066927ac1 100644 --- a/pym/portage/cache/mappings.py +++ b/pym/portage/cache/mappings.py @@ -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 " + \ |