Mercurial > hg
comparison mercurial/templater.py @ 30625:bcf4a975f93d
py3: replace os.altsep with pycompat.altsep
All the occurences of os.altsep are replaced with pycompat.altsep which
returns bytes.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Dec 2016 01:17:12 +0530 |
parents | bb77654dc7ae |
children | 0b8356705de6 |
comparison
equal
deleted
inserted
replaced
30624:a82a6eee2613 | 30625:bcf4a975f93d |
---|---|
1243 for style in styles: | 1243 for style in styles: |
1244 # only plain name is allowed to honor template paths | 1244 # only plain name is allowed to honor template paths |
1245 if (not style | 1245 if (not style |
1246 or style in (os.curdir, os.pardir) | 1246 or style in (os.curdir, os.pardir) |
1247 or pycompat.ossep in style | 1247 or pycompat.ossep in style |
1248 or os.altsep and os.altsep in style): | 1248 or pycompat.osaltsep and pycompat.osaltsep in style): |
1249 continue | 1249 continue |
1250 locations = [os.path.join(style, 'map'), 'map-' + style] | 1250 locations = [os.path.join(style, 'map'), 'map-' + style] |
1251 locations.append('map') | 1251 locations.append('map') |
1252 | 1252 |
1253 for path in paths: | 1253 for path in paths: |