summaryrefslogtreecommitdiffstats
path: root/Modules
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 /Modules
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c2
1 files changed, 1 insertions, 1 deletions
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