##// END OF EJS Templates
py3: have bytes version of os.getenv...
Pulkit Goyal -
r30663:bb0d5aad default
parent child Browse files
Show More
@@ -45,6 +45,7 b' if ispy3:'
45 ospathsep = os.pathsep.encode('ascii')
45 ospathsep = os.pathsep.encode('ascii')
46 ossep = os.sep.encode('ascii')
46 ossep = os.sep.encode('ascii')
47 osaltsep = os.altsep
47 osaltsep = os.altsep
48 osgetenv = os.getenvb
48 if osaltsep:
49 if osaltsep:
49 osaltsep = osaltsep.encode('ascii')
50 osaltsep = osaltsep.encode('ascii')
50 # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which
51 # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which
@@ -156,6 +157,7 b' else:'
156 sysargv = sys.argv
157 sysargv = sys.argv
157 sysplatform = sys.platform
158 sysplatform = sys.platform
158 getcwd = os.getcwd
159 getcwd = os.getcwd
160 osgetenv = os.getenv
159
161
160 stringio = io.StringIO
162 stringio = io.StringIO
161 empty = _queue.Empty
163 empty = _queue.Empty
General Comments 0
You need to be logged in to leave comments. Login now