mercurial/hgweb/hgwebdir_mod.py
changeset 43106 d783f945a701
parent 43077 687b865b95ad
child 43447 6ff1a0d109c9
child 43677 0b7733719d21
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Oct 06 19:25:18 2019 -0400
+++ b/mercurial/hgweb/hgwebdir_mod.py	Mon Oct 07 00:04:04 2019 -0400
@@ -447,7 +447,8 @@
                     uenv = req.rawenv
                     if pycompat.ispy3:
                         uenv = {
-                            k.decode('latin1'): v for k, v in uenv.iteritems()
+                            k.decode('latin1'): v
+                            for k, v in pycompat.iteritems(uenv)
                         }
                     req = requestmod.parserequestfromenv(
                         uenv,