]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23659: Document **fmtparams in csv.register_dialect docstring.
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 5 Jun 2015 12:17:51 +0000 (15:17 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 5 Jun 2015 12:17:51 +0000 (15:17 +0300)
Initial patch by Brandon Milam.

Doc/library/csv.rst
Modules/_csv.c

index 9f7b58afa710e0977809b1e21793cbeb9c8cc64f..313dce0c473d5c502dfcb969fe78f332f71bb211 100644 (file)
@@ -108,7 +108,7 @@ The :mod:`csv` module defines the following functions:
           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
index c8767d1ea56c17c135a805aa049d75378e2f9f0f..7a7156431c4869601ed40ce1024e65096d73981a 100644 (file)
@@ -1589,7 +1589,7 @@ PyDoc_STRVAR(csv_get_dialect_doc,
 
 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"