From fea43b5ca68f35121ce990ee7998a786d3b1e69e Mon Sep 17 00:00:00 2001 From: jab Date: Sun, 22 Nov 2015 21:30:08 +0000 Subject: [PATCH] improve error message --- bidict/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bidict/util.py b/bidict/util.py index 19d8735..60c371b 100644 --- a/bidict/util.py +++ b/bidict/util.py @@ -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?