diff tests/test-hgweb-auth.py @ 36360:58c1368ab629

py3: use dict.items() instead of dict.iteritems() in tests dict.iteritems() is not present in Python 3. Differential Revision: https://phab.mercurial-scm.org/D2353
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Feb 2018 21:18:52 +0530
parents ba479850c9c7
children 31c37e703cee
line wrap: on
line diff
--- 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)