summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-04-22 12:25:25 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-04-22 12:25:25 (GMT)
commitd4cb4b74517922a4594b252edadb35222e81e47d (patch)
tree271665d4da25d736d5b47fd893952311d953da3f /Modules
parente917052e1abb6e7722ef91d29c979be13ac9a539 (diff)
downloadcpython-d4cb4b74517922a4594b252edadb35222e81e47d.zip
cpython-d4cb4b74517922a4594b252edadb35222e81e47d.tar.gz
cpython-d4cb4b74517922a4594b252edadb35222e81e47d.tar.bz2
Issue #17736: fix misleading comment in _elementtree.c
Patch by Jonas Wagner
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 49441cc..86fdd2f 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -312,7 +312,9 @@ element_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
* This is required by some constructors/functions in this module that can
* either accept attrib as a keyword argument or all attributes splashed
* directly into *kwds.
- * If there is no 'attrib' keyword, return an empty dict.
+ *
+ * Return a dictionary with the content of kwds merged into the content of
+ * attrib. If there is no attrib keyword, return a copy of kwds.
*/
static PyObject*
get_attrib_from_keywords(PyObject *kwds)