diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-28 07:51:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-28 07:51:12 +0000 |
commit | ed342e3759f722c588451a2e86f3bd14d026aacf (patch) | |
tree | 0842303f5cb2083431b971418886ec1de25b8eb9 | |
parent | 45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f (diff) | |
download | portage-ed342e3759f722c588451a2e86f3bd14d026aacf.tar.gz portage-ed342e3759f722c588451a2e86f3bd14d026aacf.tar.bz2 portage-ed342e3759f722c588451a2e86f3bd14d026aacf.zip |
Fix arg count when constructing a TypeError in the SlotDict constructor.
svn path=/main/trunk/; revision=11234
-rw-r--r-- | pym/portage/cache/mappings.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |