From: Zac Medico Date: Mon, 28 Jul 2008 07:51:12 +0000 (-0000) Subject: Fix arg count when constructing a TypeError in the SlotDict constructor. X-Git-Tag: v2.2_rc4~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed342e3759f722c588451a2e86f3bd14d026aacf;p=portage.git Fix arg count when constructing a TypeError in the SlotDict constructor. svn path=/main/trunk/; revision=11234 --- diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py index 75f97d6ae..96e9e553b 100644 --- a/pym/portage/cache/mappings.py +++ b/pym/portage/cache/mappings.py @@ -147,7 +147,7 @@ def slot_dict_class(keys, prefix="_val_"): if len(args) > 1: raise TypeError( "expected at most 1 positional argument, got " + \ - repr(1 + len(args))) + repr(len(args))) if args: self.update(args[0])