mercurial/hgweb/hgweb_mod.py
changeset 45315 2901133ec982
parent 45314 d12fba074cc6
child 45316 1b983985edd9
equal deleted inserted replaced
45314:d12fba074cc6 45315:2901133ec982
    77                 or pycompat.ossep in style
    77                 or pycompat.ossep in style
    78                 or pycompat.osaltsep
    78                 or pycompat.osaltsep
    79                 and pycompat.osaltsep in style
    79                 and pycompat.osaltsep in style
    80             ):
    80             ):
    81                 continue
    81                 continue
    82             locations = [os.path.join(style, b'map'), b'map-' + style]
    82             locations = (os.path.join(style, b'map'), b'map-' + style, b'map')
    83             locations.append(b'map')
       
    84 
    83 
    85             for location in locations:
    84             for location in locations:
    86                 mapfile = os.path.join(path, location)
    85                 mapfile = os.path.join(path, location)
    87                 if os.path.isfile(mapfile):
    86                 if os.path.isfile(mapfile):
    88                     return style, mapfile
    87                     return style, mapfile