improve error message

This commit is contained in:
jab 2015-11-22 21:30:08 +00:00
parent 4740123c8c
commit fea43b5ca6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def pairs(*map_or_it, **kw):
if map_or_it:
l = len(map_or_it)
if l != 1:
raise TypeError('expected at most 1 argument, got %d' % l)
raise TypeError('Pass at most 1 positional argument (got %d)' % l)
map_or_it = map_or_it[0]
try:
it = iteritems(map_or_it) # mapping?