summaryrefslogtreecommitdiffstats
path: root/Doc/library/csv.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-20 15:33:17 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-03-20 15:33:17 (GMT)
commit3d81d3e0d3dc234edb71ea1bb47b3c7cb7567089 (patch)
tree8735729b1987adff03c3b1c723ee1d59b0732fe3 /Doc/library/csv.rst
parenta50549b84544fde4c531721bfcee63c14f130dc7 (diff)
parent38a04e51f60c6b7dfca354d37fb95cb0961c02c6 (diff)
downloadcpython-3d81d3e0d3dc234edb71ea1bb47b3c7cb7567089.zip
cpython-3d81d3e0d3dc234edb71ea1bb47b3c7cb7567089.tar.gz
cpython-3d81d3e0d3dc234edb71ea1bb47b3c7cb7567089.tar.bz2
Markup fixes for #7198 patch.
Also corrected the indentation of one of the examples.
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r--Doc/library/csv.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index fac2cdc..ec0dfcc 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -79,8 +79,8 @@ The :mod:`csv` module defines the following functions:
Return a writer object responsible for converting the user's data into delimited
strings on the given file-like object. *csvfile* can be any object with a
- :func:`write` method. If *csvfile* is a file object,
- it should be opened with ``newline=''``. [1]_ An optional *dialect*
+ :func:`write` method. If *csvfile* is a file object, it should be opened with
+ ``newline=''`` [1]_. An optional *dialect*
parameter can be given which is used to define a set of parameters specific to a
particular CSV dialect. It may be an instance of a subclass of the
:class:`Dialect` class or one of the strings returned by the
@@ -476,14 +476,14 @@ A slightly more advanced use of the reader --- catching and reporting errors::
And while the module doesn't directly support parsing strings, it can easily be
done::
- import csv
- for row in csv.reader(['one,two,three']):
- print(row)
+ import csv
+ for row in csv.reader(['one,two,three']):
+ print(row)
.. rubric:: Footnotes
.. [1] If ``newline=''`` is not specified, newlines embedded inside quoted fields
will not be interpreted correctly, and on platforms that use ``\r\n`` linendings
- on write an extra `\\r` will be added. It should always be safe to specify
+ on write an extra ``\r`` will be added. It should always be safe to specify
``newline=''``, since the csv module does its own (universal) newline handling.