Skip to content

Commit 959a225

Browse files
author
Erlend E. Aasland
committed
Address Heime's review: Don't define globals twice
1 parent 2448e93 commit 959a225

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Modules/_elementtree.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,8 +2258,6 @@ static PyType_Spec elementiter_spec = {
22582258
.slots = elementiter_slots,
22592259
};
22602260

2261-
static PyTypeObject *ElementIter_Type = NULL;
2262-
22632261
#define INIT_PARENT_STACK_SIZE 8
22642262

22652263
static PyObject *
@@ -4216,8 +4214,6 @@ static PyType_Spec element_spec = {
42164214
.slots = element_slots,
42174215
};
42184216

4219-
static PyTypeObject *Element_Type = NULL;
4220-
42214217
static PyMethodDef treebuilder_methods[] = {
42224218
_ELEMENTTREE_TREEBUILDER_DATA_METHODDEF
42234219
_ELEMENTTREE_TREEBUILDER_START_METHODDEF
@@ -4246,8 +4242,6 @@ static PyType_Spec treebuilder_spec = {
42464242
.slots = treebuilder_slots,
42474243
};
42484244

4249-
static PyTypeObject *TreeBuilder_Type = NULL;
4250-
42514245
static PyMethodDef xmlparser_methods[] = {
42524246
_ELEMENTTREE_XMLPARSER_FEED_METHODDEF
42534247
_ELEMENTTREE_XMLPARSER_CLOSE_METHODDEF
@@ -4276,8 +4270,6 @@ static PyType_Spec xmlparser_spec = {
42764270
.slots = xmlparser_slots,
42774271
};
42784272

4279-
static PyTypeObject *XMLParser_Type = NULL;
4280-
42814273
/* ==================================================================== */
42824274
/* python module interface */
42834275

0 commit comments

Comments
 (0)