[Python-checkins] cpython: mention newline= in write doc

skip.montanaro python-checkins at python.org
Sun Mar 20 15:51:22 CET 2011


http://hg.python.org/cpython/rev/592fd5b15639
changeset:   68749:592fd5b15639
user:        Skip Montanaro <skip at pobox.com>
date:        Sun Mar 20 09:50:43 2011 -0500
summary:
  mention newline= in write doc

files:
  Doc/library/csv.rst

diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -79,8 +79,8 @@
 
    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=''``. [#]_  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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list