From 9c4a1a20d0ec2789ccffd3b3e7431f240ada7f78 Mon Sep 17 00:00:00 2001 From: Cody Maloney Date: Mon, 5 Oct 2026 20:35:49 -0700 Subject: [PATCH] gh-126273, gh-56821: Fix make clinic warnings These no longer have long summaries. `make clinic` was outputting: > Warning in file '../cpython/Modules/_elementtree.c' on line 3779: > Remove the @permit_long_summary decorator from '_elementtree.XMLParser.__init__'! > > > Warning in file '../cpython/Modules/pyexpat.c' on line 1083: > Remove the @permit_long_summary decorator from 'pyexpat.xmlparser.GetInputContext'! --- Modules/_elementtree.c | 3 +-- Modules/pyexpat.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 8d7010c7bb90c82..cee564c2c1c1f0f 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -3775,7 +3775,6 @@ ignore_attribute_error(PyObject *value) } /*[clinic input] -@permit_long_summary _elementtree.XMLParser.__init__ * @@ -3793,7 +3792,7 @@ file: http://www.iana.org/assignments/character-sets static int _elementtree_XMLParser___init___impl(XMLParserObject *self, PyObject *target, const char *encoding) -/*[clinic end generated code: output=3ae45ec6cdf344e4 input=43dcd316382c80a2]*/ +/*[clinic end generated code: output=3ae45ec6cdf344e4 input=a77eb075d276d487]*/ { self->entity = PyDict_New(); if (!self->entity) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 4ab076224cdd91e..8dddca42bbdf672 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1079,7 +1079,6 @@ pyexpat_xmlparser_GetSpecifiedAttributeCount_impl(xmlparseobject *self) } /*[clinic input] -@permit_long_summary pyexpat.xmlparser.GetInputContext Return the input which generated the current event as bytes. @@ -1093,7 +1092,7 @@ available. static PyObject * pyexpat_xmlparser_GetInputContext_impl(xmlparseobject *self) -/*[clinic end generated code: output=a88026d683fc22cc input=13840373d8320ab6]*/ +/*[clinic end generated code: output=a88026d683fc22cc input=2d605aaa9edbb415]*/ { if (self->in_callback) { int offset, size;