Address Heime's review: Don't define globals twice
This commit is contained in:
parent
3ae83fc5ba
commit
5f584aa672
|
@ -2258,8 +2258,6 @@ static PyType_Spec elementiter_spec = {
|
|||
.slots = elementiter_slots,
|
||||
};
|
||||
|
||||
static PyTypeObject *ElementIter_Type = NULL;
|
||||
|
||||
#define INIT_PARENT_STACK_SIZE 8
|
||||
|
||||
static PyObject *
|
||||
|
@ -4216,8 +4214,6 @@ static PyType_Spec element_spec = {
|
|||
.slots = element_slots,
|
||||
};
|
||||
|
||||
static PyTypeObject *Element_Type = NULL;
|
||||
|
||||
static PyMethodDef treebuilder_methods[] = {
|
||||
_ELEMENTTREE_TREEBUILDER_DATA_METHODDEF
|
||||
_ELEMENTTREE_TREEBUILDER_START_METHODDEF
|
||||
|
@ -4246,8 +4242,6 @@ static PyType_Spec treebuilder_spec = {
|
|||
.slots = treebuilder_slots,
|
||||
};
|
||||
|
||||
static PyTypeObject *TreeBuilder_Type = NULL;
|
||||
|
||||
static PyMethodDef xmlparser_methods[] = {
|
||||
_ELEMENTTREE_XMLPARSER_FEED_METHODDEF
|
||||
_ELEMENTTREE_XMLPARSER_CLOSE_METHODDEF
|
||||
|
@ -4276,8 +4270,6 @@ static PyType_Spec xmlparser_spec = {
|
|||
.slots = xmlparser_slots,
|
||||
};
|
||||
|
||||
static PyTypeObject *XMLParser_Type = NULL;
|
||||
|
||||
/* ==================================================================== */
|
||||
/* python module interface */
|
||||
|
||||
|
|
Loading…
Reference in New Issue