[Python-checkins] cpython (merge 3.4 -> 3.5): Issue #23659: Document **fmtparams in csv.register_dialect docstring.

berker.peksag python-checkins at python.org
Fri Jun 5 14:18:11 CEST 2015


https://hg.python.org/cpython/rev/eee64e72d294
changeset:   96520:eee64e72d294
branch:      3.5
parent:      96517:ffb7019d70cf
parent:      96519:9377ffb9eaf2
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Fri Jun 05 15:18:17 2015 +0300
summary:
  Issue #23659: Document **fmtparams in csv.register_dialect docstring.

Initial patch by Brandon Milam.

files:
  Doc/library/csv.rst |  2 +-
  Modules/_csv.c      |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -109,7 +109,7 @@
           spamwriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
 
 
-.. function:: register_dialect(name[, dialect], **fmtparams)
+.. function:: register_dialect(name[, dialect[, **fmtparams]])
 
    Associate *dialect* with *name*.  *name* must be a string. The
    dialect can be specified either by passing a sub-class of :class:`Dialect`, or
diff --git a/Modules/_csv.c b/Modules/_csv.c
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -1588,7 +1588,7 @@
 
 PyDoc_STRVAR(csv_register_dialect_doc,
 "Create a mapping from a string name to a dialect class.\n"
-"    dialect = csv.register_dialect(name, dialect)");
+"    dialect = csv.register_dialect(name[, dialect[, **fmtparams]])");
 
 PyDoc_STRVAR(csv_unregister_dialect_doc,
 "Delete the name/dialect mapping associated with a string name.\n"

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


More information about the Python-checkins mailing list