Show More
@@ -44,6 +44,9 b' if ispy3:' | |||||
44 | osname = os.name.encode('ascii') |
|
44 | osname = os.name.encode('ascii') | |
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 | |||
|
48 | if osaltsep: | |||
|
49 | osaltsep = osaltsep.encode('ascii') | |||
47 | # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which |
|
50 | # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which | |
48 | # returns bytes. |
|
51 | # returns bytes. | |
49 | getcwd = os.getcwdb |
|
52 | getcwd = os.getcwdb | |
@@ -145,6 +148,7 b' else:' | |||||
145 | osname = os.name |
|
148 | osname = os.name | |
146 | ospathsep = os.pathsep |
|
149 | ospathsep = os.pathsep | |
147 | ossep = os.sep |
|
150 | ossep = os.sep | |
|
151 | osaltsep = os.altsep | |||
148 | stdin = sys.stdin |
|
152 | stdin = sys.stdin | |
149 | stdout = sys.stdout |
|
153 | stdout = sys.stdout | |
150 | stderr = sys.stderr |
|
154 | stderr = sys.stderr |
General Comments 0
You need to be logged in to leave comments.
Login now