From: Zac Medico Date: Tue, 10 Mar 2009 04:28:21 +0000 (-0000) Subject: Initialize UserDict.data in the constructor. X-Git-Tag: v2.2_rc24~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f1562aa8272e91a01f951fbab804a006a3324f1;p=portage.git Initialize UserDict.data in the constructor. svn path=/main/trunk/; revision=12816 --- 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 " + \