summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/deploy/util.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paste/deploy/util.py b/paste/deploy/util.py
index 02d3fa2..b6f766a 100644
--- a/paste/deploy/util.py
+++ b/paste/deploy/util.py
@@ -32,8 +32,7 @@ def fix_type_error(exc_info, callable, varargs, kwargs):
if kwargs and args:
args += ', '
if kwargs:
- kwargs = kwargs.items()
- kwargs.sort()
+ kwargs = sorted(kwargs.items())
args += ', '.join(['%s=...' % n for n, v in kwargs])
gotspec = '(%s)' % args
msg = '%s; got %s, wanted %s' % (exc_info[1], gotspec, argspec)