##// END OF EJS Templates
py3: have a bytes version of os.altsep...
Pulkit Goyal -
r30623:c6026c20 default
parent child Browse files
Show More
@@ -44,6 +44,9 b' if ispy3:'
44 44 osname = os.name.encode('ascii')
45 45 ospathsep = os.pathsep.encode('ascii')
46 46 ossep = os.sep.encode('ascii')
47 osaltsep = os.altsep
48 if osaltsep:
49 osaltsep = osaltsep.encode('ascii')
47 50 # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which
48 51 # returns bytes.
49 52 getcwd = os.getcwdb
@@ -145,6 +148,7 b' else:'
145 148 osname = os.name
146 149 ospathsep = os.pathsep
147 150 ossep = os.sep
151 osaltsep = os.altsep
148 152 stdin = sys.stdin
149 153 stdout = sys.stdout
150 154 stderr = sys.stderr
General Comments 0
You need to be logged in to leave comments. Login now