Since we recommend one module per import line, reflect this also in the
documentation.
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index f19574b..4b402b1 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -460,7 +460,8 @@
A slightly more advanced use of the reader --- catching and reporting errors::
- import csv, sys
+ import csv
+ import sys
filename = "some.csv"
reader = csv.reader(open(filename, "rb"))
try:
@@ -506,7 +507,9 @@
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 codecs
+ import cStringIO
+ import csv
class UTF8Recoder:
"""