]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #17736: fix misleading comment in _elementtree.c
authorEli Bendersky <eliben@gmail.com>
Mon, 22 Apr 2013 12:25:25 +0000 (05:25 -0700)
committerEli Bendersky <eliben@gmail.com>
Mon, 22 Apr 2013 12:25:25 +0000 (05:25 -0700)
Patch by Jonas Wagner

Misc/ACKS
Modules/_elementtree.c

index fe279949c853eac9fa0f727e991e81d1de5dc3b0..9961aa560e27f72761eda3d144469861b66777da 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1274,6 +1274,7 @@ Rodrigo Steinmuller Wanderley
 Ke Wang
 Greg Ward
 Zachary Ware
+Jonas Wagner
 Barry Warsaw
 Steve Waterbury
 Bob Watson
index 49441cc827eaf5f5d4eabf0afa400e75a1a67066..86fdd2f1db9dbc1967da5ec6a4db11a336b8d9c5 100644 (file)
@@ -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)