tests/test-hgweb-auth.py
changeset 36360 58c1368ab629
parent 34041 ba479850c9c7
child 37984 31c37e703cee
--- a/tests/test-hgweb-auth.py	Mon Feb 19 15:28:54 2018 +0530
+++ b/tests/test-hgweb-auth.py	Mon Feb 19 21:18:52 2018 +0530
@@ -19,7 +19,7 @@
 
 def writeauth(items):
     ui = origui.copy()
-    for name, value in items.iteritems():
+    for name, value in items.items():
         ui.setconfig('auth', name, value)
     return ui
 
@@ -36,7 +36,7 @@
         for name in ('.username', '.password'):
             if (p + name) not in auth:
                 auth[p + name] = p
-    auth = dict((k, v) for k, v in auth.iteritems() if v is not None)
+    auth = dict((k, v) for k, v in auth.items() if v is not None)
 
     ui = writeauth(auth)