summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/_elementtree.c.h
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-01-20 11:40:06 (GMT)
committerGitHub <noreply@github.com>2023-01-20 11:40:06 (GMT)
commit3847a6c64b96bb2cb93be394a590d4df2c35e876 (patch)
tree690f476a3bbd8f850e524b9a46ecd626f39f5ec8 /Modules/clinic/_elementtree.c.h
parent9109d460511a317f5598a26658ba495e77ea8686 (diff)
downloadcpython-3847a6c64b96bb2cb93be394a590d4df2c35e876.zip
cpython-3847a6c64b96bb2cb93be394a590d4df2c35e876.tar.gz
cpython-3847a6c64b96bb2cb93be394a590d4df2c35e876.tar.bz2
gh-92123: Convert `_elementtree` types to heap types (#99221)
Diffstat (limited to 'Modules/clinic/_elementtree.c.h')
-rw-r--r--Modules/clinic/_elementtree.c.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/clinic/_elementtree.c.h b/Modules/clinic/_elementtree.c.h
index 33ccaf7..b816e1b 100644
--- a/Modules/clinic/_elementtree.c.h
+++ b/Modules/clinic/_elementtree.c.h
@@ -25,8 +25,8 @@ _elementtree_Element_append(ElementObject *self, PyObject *arg)
PyObject *return_value = NULL;
PyObject *subelement;
- if (!PyObject_TypeCheck(arg, &Element_Type)) {
- _PyArg_BadArgument("append", "argument", (&Element_Type)->tp_name, arg);
+ if (!PyObject_TypeCheck(arg, Element_Type)) {
+ _PyArg_BadArgument("append", "argument", (Element_Type)->tp_name, arg);
goto exit;
}
subelement = arg;
@@ -586,8 +586,8 @@ _elementtree_Element_insert(ElementObject *self, PyObject *const *args, Py_ssize
}
index = ival;
}
- if (!PyObject_TypeCheck(args[1], &Element_Type)) {
- _PyArg_BadArgument("insert", "argument 2", (&Element_Type)->tp_name, args[1]);
+ if (!PyObject_TypeCheck(args[1], Element_Type)) {
+ _PyArg_BadArgument("insert", "argument 2", (Element_Type)->tp_name, args[1]);
goto exit;
}
subelement = args[1];
@@ -682,8 +682,8 @@ _elementtree_Element_remove(ElementObject *self, PyObject *arg)
PyObject *return_value = NULL;
PyObject *subelement;
- if (!PyObject_TypeCheck(arg, &Element_Type)) {
- _PyArg_BadArgument("remove", "argument", (&Element_Type)->tp_name, arg);
+ if (!PyObject_TypeCheck(arg, Element_Type)) {
+ _PyArg_BadArgument("remove", "argument", (Element_Type)->tp_name, arg);
goto exit;
}
subelement = arg;
@@ -1105,4 +1105,4 @@ skip_optional:
exit:
return return_value;
}
-/*[clinic end generated code: output=4ad006cadce01571 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=db3d6654de9f8013 input=a9049054013a1b77]*/