Issue #23659: Document **fmtparams in csv.register_dialect docstring.

Initial patch by Brandon Milam.
This commit is contained in:
Berker Peksag 2015-06-05 15:18:38 +03:00
commit 2d15749684
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,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

View File

@ -1588,7 +1588,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"