summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-29 20:12:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-09-29 20:12:35 (GMT)
commit84d8baadbed31968b83a2a0f4ee4f770bbb32c7a (patch)
treea0a3f86f54df5b532ff9d73f3d024f0500f3271c
parentcf6d2d90c5d0d689881565fa45ebc00048016912 (diff)
downloadcpython-84d8baadbed31968b83a2a0f4ee4f770bbb32c7a.zip
cpython-84d8baadbed31968b83a2a0f4ee4f770bbb32c7a.tar.gz
cpython-84d8baadbed31968b83a2a0f4ee4f770bbb32c7a.tar.bz2
Fix xml.etree.ElementTree.Element.getiterator()
Issue #28314: Fix function declaration (C flags) for the getiterator() method of xml.etree.ElementTree.Element.
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/_elementtree.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index e71a20d..aecd0c3 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -44,6 +44,9 @@ Core and Builtins
Library
-------
+- Issue #28314: Fix function declaration (C flags) for the getiterator() method
+ of xml.etree.ElementTree.Element.
+
- Issue #28148: Stop using localtime() and gmtime() in the time
module.
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index dd8417a..3362195 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -3702,7 +3702,7 @@ static PyMethodDef element_methods[] = {
_ELEMENTTREE_ELEMENT_ITERTEXT_METHODDEF
_ELEMENTTREE_ELEMENT_ITERFIND_METHODDEF
- {"getiterator", (PyCFunction)_elementtree_Element_iter, METH_VARARGS|METH_KEYWORDS, _elementtree_Element_iter__doc__},
+ {"getiterator", (PyCFunction)_elementtree_Element_iter, METH_FASTCALL, _elementtree_Element_iter__doc__},
_ELEMENTTREE_ELEMENT_GETCHILDREN_METHODDEF
_ELEMENTTREE_ELEMENT_ITEMS_METHODDEF