summaryrefslogtreecommitdiffstats
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-04-22 12:29:09 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-04-22 12:29:09 (GMT)
commited8b86d323f83d546574fc7b4a6dd22579319f70 (patch)
treec6b57afbee9dd042d937a493ee32267fa0759b96 /Modules/_elementtree.c
parent40589f4b6307ddfa840cdca1d2446415b813a796 (diff)
parentd4cb4b74517922a4594b252edadb35222e81e47d (diff)
downloadcpython-ed8b86d323f83d546574fc7b4a6dd22579319f70.zip
cpython-ed8b86d323f83d546574fc7b4a6dd22579319f70.tar.gz
cpython-ed8b86d323f83d546574fc7b4a6dd22579319f70.tar.bz2
Issue #17736: fix misleading comment in _elementtree.c
Patch by Jonas Wagner
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r--Modules/_elementtree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index c87b6a2..b05a39f 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -271,7 +271,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)