mercurial/pycompat.py
changeset 30303 ad40d307a9f0
parent 30302 3874ddba1ab4
child 30327 e0d9b6aab4c5
--- a/mercurial/pycompat.py	Sun Nov 06 03:33:22 2016 +0530
+++ b/mercurial/pycompat.py	Sun Nov 06 03:44:44 2016 +0530
@@ -39,6 +39,8 @@
     fsdecode = os.fsdecode
     # A bytes version of os.name.
     osname = os.name.encode('ascii')
+    ospathsep = os.pathsep.encode('ascii')
+    ossep = os.sep.encode('ascii')
 
     def sysstr(s):
         """Return a keyword str to be passed to Python functions such as
@@ -85,6 +87,8 @@
         return filename
 
     osname = os.name
+    ospathsep = os.pathsep
+    ossep = os.sep
 
 stringio = io.StringIO
 empty = _queue.Empty