Show More
@@ -52,6 +52,9 b' if ispy3:' | |||||
52 | # returns bytes. |
|
52 | # returns bytes. | |
53 | getcwd = os.getcwdb |
|
53 | getcwd = os.getcwdb | |
54 | sysplatform = sys.platform.encode('ascii') |
|
54 | sysplatform = sys.platform.encode('ascii') | |
|
55 | sysexecutable = sys.executable | |||
|
56 | if sysexecutable: | |||
|
57 | sysexecutable = os.fsencode(sysexecutable) | |||
55 |
|
58 | |||
56 | # TODO: .buffer might not exist if std streams were replaced; we'll need |
|
59 | # TODO: .buffer might not exist if std streams were replaced; we'll need | |
57 | # a silly wrapper to make a bytes stream backed by a unicode one. |
|
60 | # a silly wrapper to make a bytes stream backed by a unicode one. | |
@@ -158,6 +161,7 b' else:' | |||||
158 | sysplatform = sys.platform |
|
161 | sysplatform = sys.platform | |
159 | getcwd = os.getcwd |
|
162 | getcwd = os.getcwd | |
160 | osgetenv = os.getenv |
|
163 | osgetenv = os.getenv | |
|
164 | sysexecutable = sys.executable | |||
161 |
|
165 | |||
162 | stringio = io.StringIO |
|
166 | stringio = io.StringIO | |
163 | empty = _queue.Empty |
|
167 | empty = _queue.Empty |
General Comments 0
You need to be logged in to leave comments.
Login now