mercurial/hgweb/webcommands.py
changeset 36274 a748a5d1d7c3
parent 36248 0ef50a5e3ae1
child 36275 0cacd4df6eb0
--- a/mercurial/hgweb/webcommands.py	Sat Feb 17 22:37:35 2018 -0500
+++ b/mercurial/hgweb/webcommands.py	Sat Feb 17 22:38:25 2018 -0500
@@ -542,7 +542,7 @@
             emptydirs = []
             h = dirs[d]
             while isinstance(h, dict) and len(h) == 1:
-                k, v = h.items()[0]
+                k, v = next(iter(h.items()))
                 if v:
                     emptydirs.append(k)
                 h = v