From 84d8baadbed31968b83a2a0f4ee4f770bbb32c7a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 29 Sep 2016 22:12:35 +0200 Subject: [PATCH] Fix xml.etree.ElementTree.Element.getiterator() Issue #28314: Fix function declaration (C flags) for the getiterator() method of xml.etree.ElementTree.Element. --- Misc/NEWS | 3 +++ Modules/_elementtree.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index e71a20df2b4..aecd0c325fc 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 dd8417a1ac7..3362195ed63 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