equal
deleted
inserted
replaced
1598 styles = [styles] |
1598 styles = [styles] |
1599 |
1599 |
1600 for style in styles: |
1600 for style in styles: |
1601 # only plain name is allowed to honor template paths |
1601 # only plain name is allowed to honor template paths |
1602 if (not style |
1602 if (not style |
1603 or style in (os.curdir, pycompat.ospardir) |
1603 or style in (pycompat.oscurdir, pycompat.ospardir) |
1604 or pycompat.ossep in style |
1604 or pycompat.ossep in style |
1605 or pycompat.osaltsep and pycompat.osaltsep in style): |
1605 or pycompat.osaltsep and pycompat.osaltsep in style): |
1606 continue |
1606 continue |
1607 locations = [os.path.join(style, 'map'), 'map-' + style] |
1607 locations = [os.path.join(style, 'map'), 'map-' + style] |
1608 locations.append('map') |
1608 locations.append('map') |