##// END OF EJS Templates
py3: have a bytes version of sys.platform...
Pulkit Goyal -
r30624:a82a6eee default
parent child Browse files
Show More
@@ -50,6 +50,7 b' if ispy3:'
50 50 # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which
51 51 # returns bytes.
52 52 getcwd = os.getcwdb
53 sysplatform = sys.platform.encode('ascii')
53 54
54 55 # TODO: .buffer might not exist if std streams were replaced; we'll need
55 56 # a silly wrapper to make a bytes stream backed by a unicode one.
@@ -153,6 +154,7 b' else:'
153 154 stdout = sys.stdout
154 155 stderr = sys.stderr
155 156 sysargv = sys.argv
157 sysplatform = sys.platform
156 158 getcwd = os.getcwd
157 159
158 160 stringio = io.StringIO
General Comments 0
You need to be logged in to leave comments. Login now