From 12b50ce4cb40bebfa92e0abae958c4fe14b63f3d Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 5 Jun 2015 15:17:51 +0300 Subject: [PATCH] Issue #23659: Document **fmtparams in csv.register_dialect docstring. Initial patch by Brandon Milam. --- 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 index 9f7b58afa71..313dce0c473 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -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 diff --git a/Modules/_csv.c b/Modules/_csv.c index c8767d1ea56..7a7156431c4 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -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"