mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Change some uses of cStringIO.StringIO to io.StringIO.
This is undoubtedly insufficient and in some cases just as broken as before.
This commit is contained in:
parent
7ac9d40201
commit
68937b4cbc
19 changed files with 26 additions and 89 deletions
|
|
@ -11,10 +11,7 @@ from _csv import Error, __version__, writer, reader, register_dialect, \
|
|||
__doc__
|
||||
from _csv import Dialect as _Dialect
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
from io import StringIO
|
||||
|
||||
__all__ = [ "QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE",
|
||||
"Error", "Dialect", "excel", "excel_tab", "reader", "writer",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue