diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -79,8 +79,7 @@ and pycompat.osaltsep in style ): continue - locations = [os.path.join(style, b'map'), b'map-' + style] - locations.append(b'map') + locations = (os.path.join(style, b'map'), b'map-' + style, b'map') for location in locations: mapfile = os.path.join(path, location)