diff 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
line wrap: on
line diff
--- a/mercurial/templater.py	Sun Dec 18 00:52:05 2016 +0530
+++ b/mercurial/templater.py	Sun Dec 18 01:17:12 2016 +0530
@@ -1245,7 +1245,7 @@
         if (not style
             or style in (os.curdir, os.pardir)
             or pycompat.ossep in style
-            or os.altsep and os.altsep in style):
+            or pycompat.osaltsep and pycompat.osaltsep in style):
             continue
         locations = [os.path.join(style, 'map'), 'map-' + style]
         locations.append('map')