mercurial/hgweb/common.py
changeset 30625 bcf4a975f93d
parent 30615 bb77654dc7ae
child 30636 f1c9fafcbf46
--- a/mercurial/hgweb/common.py	Sun Dec 18 00:52:05 2016 +0530
+++ b/mercurial/hgweb/common.py	Sun Dec 18 01:17:12 2016 +0530
@@ -143,7 +143,7 @@
     for part in parts:
         if (part in ('', os.curdir, os.pardir) or
             pycompat.ossep in part or
-            os.altsep is not None and os.altsep in part):
+            pycompat.osaltsep is not None and pycompat.osaltsep in part):
             return
     fpath = os.path.join(*parts)
     if isinstance(directory, str):