projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4a095a
)
Initialize UserDict.data in the constructor.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 10 Mar 2009 04:28:21 +0000
(
04:28
-0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/cache/mappings.py
b/pym/portage/cache/mappings.py
index 77923b46230a49bfcb10aaf659458d74216536f9..066927ac146a8ec942b69afe3a97a3f8898daa04 100644
(file)
--- 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 " + \