equal
deleted
inserted
replaced
41 fsdecode = os.fsdecode |
41 fsdecode = os.fsdecode |
42 # A bytes version of os.name. |
42 # A bytes version of os.name. |
43 osname = os.name.encode('ascii') |
43 osname = os.name.encode('ascii') |
44 ospathsep = os.pathsep.encode('ascii') |
44 ospathsep = os.pathsep.encode('ascii') |
45 ossep = os.sep.encode('ascii') |
45 ossep = os.sep.encode('ascii') |
|
46 # os.getcwd() on Python 3 returns string, but it has os.getcwdb() which |
|
47 # returns bytes. |
|
48 getcwd = os.getcwdb |
46 |
49 |
47 # TODO: .buffer might not exist if std streams were replaced; we'll need |
50 # TODO: .buffer might not exist if std streams were replaced; we'll need |
48 # a silly wrapper to make a bytes stream backed by a unicode one. |
51 # a silly wrapper to make a bytes stream backed by a unicode one. |
49 stdin = sys.stdin.buffer |
52 stdin = sys.stdin.buffer |
50 stdout = sys.stdout.buffer |
53 stdout = sys.stdout.buffer |
108 ossep = os.sep |
111 ossep = os.sep |
109 stdin = sys.stdin |
112 stdin = sys.stdin |
110 stdout = sys.stdout |
113 stdout = sys.stdout |
111 stderr = sys.stderr |
114 stderr = sys.stderr |
112 sysargv = sys.argv |
115 sysargv = sys.argv |
|
116 getcwd = os.getcwd |
113 |
117 |
114 stringio = io.StringIO |
118 stringio = io.StringIO |
115 empty = _queue.Empty |
119 empty = _queue.Empty |
116 queue = _queue.Queue |
120 queue = _queue.Queue |
117 |
121 |