Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4cb4b7

Browse files
committed
Issue #17736: fix misleading comment in _elementtree.c
Patch by Jonas Wagner
1 parent e917052 commit d4cb4b7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,7 @@ Rodrigo Steinmuller Wanderley
12741274
Ke Wang
12751275
Greg Ward
12761276
Zachary Ware
1277+
Jonas Wagner
12771278
Barry Warsaw
12781279
Steve Waterbury
12791280
Bob Watson

Modules/_elementtree.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ element_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
312312
* This is required by some constructors/functions in this module that can
313313
* either accept attrib as a keyword argument or all attributes splashed
314314
* directly into *kwds.
315-
* If there is no 'attrib' keyword, return an empty dict.
315+
*
316+
* Return a dictionary with the content of kwds merged into the content of
317+
* attrib. If there is no attrib keyword, return a copy of kwds.
316318
*/
317319
static PyObject*
318320
get_attrib_from_keywords(PyObject *kwds)

0 commit comments

Comments
 (0)