Show More
@@ -19,7 +19,6 b' ispy3 = (sys.version_info[0] >= 3)' | |||
|
19 | 19 | |
|
20 | 20 | if not ispy3: |
|
21 | 21 | import cPickle as pickle |
|
22 | import cStringIO as io | |
|
23 | 22 | import httplib |
|
24 | 23 | import Queue as _queue |
|
25 | 24 | import SocketServer as socketserver |
@@ -28,7 +27,6 b' if not ispy3:' | |||
|
28 | 27 | import xmlrpclib |
|
29 | 28 | else: |
|
30 | 29 | import http.client as httplib |
|
31 | import io | |
|
32 | 30 | import pickle |
|
33 | 31 | import queue as _queue |
|
34 | 32 | import socketserver |
@@ -39,6 +37,8 b' else:' | |||
|
39 | 37 | if ispy3: |
|
40 | 38 | import builtins |
|
41 | 39 | import functools |
|
40 | import io | |
|
41 | ||
|
42 | 42 | fsencode = os.fsencode |
|
43 | 43 | fsdecode = os.fsdecode |
|
44 | 44 | # A bytes version of os.name. |
@@ -139,6 +139,8 b' if ispy3:' | |||
|
139 | 139 | return [a.encode('latin-1') for a in ret] |
|
140 | 140 | |
|
141 | 141 | else: |
|
142 | import cStringIO | |
|
143 | ||
|
142 | 144 | bytechr = chr |
|
143 | 145 | |
|
144 | 146 | def sysstr(s): |
@@ -181,7 +183,7 b' else:' | |||
|
181 | 183 | getcwd = os.getcwd |
|
182 | 184 | sysexecutable = sys.executable |
|
183 | 185 | shlexsplit = shlex.split |
|
184 |
stringio = |
|
|
186 | stringio = cStringIO.StringIO | |
|
185 | 187 | |
|
186 | 188 | empty = _queue.Empty |
|
187 | 189 | queue = _queue.Queue |
General Comments 0
You need to be logged in to leave comments.
Login now