tests/test-hgweb-auth.py
changeset 37940 31c37e703cee
parent 36327 58c1368ab629
child 37942 32bc3815efae
--- a/tests/test-hgweb-auth.py	Fri Apr 27 13:43:59 2018 -0400
+++ b/tests/test-hgweb-auth.py	Fri Apr 27 13:46:54 2018 -0400
@@ -3,10 +3,14 @@
 from mercurial import demandimport; demandimport.enable()
 from mercurial import (
     error,
+    pycompat,
     ui as uimod,
     url,
     util,
 )
+from mercurial.utils import (
+    stringutil,
+)
 
 urlerr = util.urlerr
 urlreq = util.urlreq
@@ -23,12 +27,8 @@
         ui.setconfig('auth', name, value)
     return ui
 
-def dumpdict(dict):
-    return '{' + ', '.join(['%s: %s' % (k, dict[k])
-                            for k in sorted(dict)]) + '}'
-
 def test(auth, urls=None):
-    print('CFG:', dumpdict(auth))
+    print('CFG:', pycompat.sysstr(stringutil.pprint(auth)))
     prefixes = set()
     for k in auth:
         prefixes.add(k.split('.', 1)[0])