Submitter | phabricator |
---|---|
Date | Feb. 18, 2018, 12:46 p.m. |
Message ID | <0561258e6267020657954e201a0df381@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28065/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -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