From 7f1562aa8272e91a01f951fbab804a006a3324f1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 10 Mar 2009 04:28:21 +0000 Subject: [PATCH] Initialize UserDict.data in the constructor. svn path=/main/trunk/; revision=12816 --- 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