From ed342e3759f722c588451a2e86f3bd14d026aacf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 Jul 2008 07:51:12 +0000 Subject: Fix arg count when constructing a TypeError in the SlotDict constructor. svn path=/main/trunk/; revision=11234 --- pym/portage/cache/mappings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v1.2.3-1-g7c22