Commits

Tres Seaver committed 04c5bbc

Py3k-compatible sorting of 'kwargs.items'.

Comments (0)

Files changed (1)

paste/deploy/util.py

     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)