mercurial/templater.py
changeset 30615 bb77654dc7ae
parent 30332 318a24b52eeb
child 30625 bcf4a975f93d
--- 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]