From b13c86c7e6dc3a9d0b89cf0921a07c2e296e4db5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 07:44:41 +0000 Subject: [PATCH] Initialize UserDict.data in the constructor. (trunk r12816) svn path=/main/branches/2.1.6/; revision=13048 --- pym/portage/cache/mappings.py | 2 ++ 1 file changed, 2 insertions(+) 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 " + \ -- 2.26.2