diff mercurial/templater.py @ 30620:bb77654dc7ae

py3: replace os.sep with pycompat.ossep (part 3 of 4)
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 17 Dec 2016 20:14:24 +0530
parents 318a24b52eeb
children bcf4a975f93d
line wrap: on
line diff
--- a/mercurial/templater.py	Sat Dec 17 20:02:50 2016 +0530
+++ b/mercurial/templater.py	Sat Dec 17 20:14:24 2016 +0530
@@ -17,6 +17,7 @@
     error,
     minirst,
     parser,
+    pycompat,
     registrar,
     revset as revsetmod,
     templatefilters,
@@ -1243,7 +1244,7 @@
         # only plain name is allowed to honor template paths
         if (not style
             or style in (os.curdir, os.pardir)
-            or os.sep in style
+            or pycompat.ossep in style
             or os.altsep and os.altsep in style):
             continue
         locations = [os.path.join(style, 'map'), 'map-' + style]