summaryrefslogtreecommitdiffstats
path: root/Doc/library/csv.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-02-20 03:31:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-02-20 03:31:23 (GMT)
commita7b55a33f877d1c210a5372a73ad85983ab8621c (patch)
treeccff5a2b2506f9b290e8c9f83be33bb3dfc16655 /Doc/library/csv.rst
parent5149742e8b3c8221d4cb53dcfc9a12ae3fec9238 (diff)
downloadcpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.zip
cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.gz
cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.bz2
revert r69777 since all the experts agree that extra import lines distract from the code
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r--Doc/library/csv.rst7
1 files changed, 2 insertions, 5 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 4b402b1..f19574b 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -460,8 +460,7 @@ Registering a new dialect::
A slightly more advanced use of the reader --- catching and reporting errors::
- import csv
- import sys
+ import csv, sys
filename = "some.csv"
reader = csv.reader(open(filename, "rb"))
try:
@@ -507,9 +506,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 codecs
- import cStringIO
- import csv
+ import csv, codecs, cStringIO
class UTF8Recoder:
"""