summaryrefslogtreecommitdiff
path: root/Doc/library/csv.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-10 15:50:56 +0000
committerGeorg Brandl <georg@python.org>2008-06-10 15:50:56 +0000
commit0312494665ba9a6492956183c181e1b87e10820d (patch)
treef5965d4f17e7d075661728a5f25e608e32bd5f62 /Doc/library/csv.rst
parentb1ef6735ba175d243b3bb8d7f46c53ffbecfb7bd (diff)
downloadcpython-git-0312494665ba9a6492956183c181e1b87e10820d.tar.gz
Remove last traces of cStringIO.
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r--Doc/library/csv.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 6beadc5791..9043dbc453 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -484,7 +484,7 @@ For all other encodings the following :class:`UnicodeReader` and
parameter in their constructor and make sure that the data passes the real
reader or writer encoded as UTF-8::
- import csv, codecs, cStringIO
+ import csv, codecs, io
class UTF8Recoder:
"""
@@ -524,7 +524,7 @@ reader or writer encoded as UTF-8::
def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds):
# Redirect output to a queue
- self.queue = cStringIO.StringIO()
+ self.queue = io.StringIO()
self.writer = csv.writer(self.queue, dialect=dialect, **kwds)
self.stream = f
self.encoder = codecs.getincrementalencoder(encoding)()