diff Modules/_elementtree.c @ 83492:041960bf92fe 3.3

Issue #17736: fix misleading comment in _elementtree.c Patch by Jonas Wagner
author Eli Bendersky <eliben@gmail.com>
date Mon, 22 Apr 2013 05:25:25 -0700
parents 6323e5f1ed81
children 9682241dc8fc 3bfe8327612a
line wrap: on
line diff
--- a/Modules/_elementtree.c	Mon Apr 22 10:07:40 2013 +0100
+++ b/Modules/_elementtree.c	Mon Apr 22 05:25:25 2013 -0700
@@ -312,7 +312,9 @@
  * 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)