summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-28 07:51:12 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-28 07:51:12 +0000
commited342e3759f722c588451a2e86f3bd14d026aacf (patch)
tree0842303f5cb2083431b971418886ec1de25b8eb9 /pym
parentAdd support for an new EAPI="2_pre0" value so that people who want to test (diff)
downloadportage-idfetch-ed342e3759f722c588451a2e86f3bd14d026aacf.tar.gz
portage-idfetch-ed342e3759f722c588451a2e86f3bd14d026aacf.tar.bz2
portage-idfetch-ed342e3759f722c588451a2e86f3bd14d026aacf.zip
Fix arg count when constructing a TypeError in the SlotDict constructor.
svn path=/main/trunk/; revision=11234
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/cache/mappings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py
index 75f97d6a..96e9e553 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])