Skip to content

Commit 4509a33

Browse files
committed
remove debugging assertions
1 parent fbf0e29 commit 4509a33

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Modules/_elementtree.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,8 +1918,6 @@ element_ass_subscr(PyObject *op, PyObject *item, PyObject *value)
19181918
* Note that in the ith iteration, shifting is done i+i places down
19191919
* because i children were already removed.
19201920
*/
1921-
assert(self->extra != NULL);
1922-
assert(self->extra->children != NULL);
19231921
for (cur = start, i = 0; cur < (size_t)stop; cur += step, ++i) {
19241922
/* Compute how many children have to be moved, clipping at the
19251923
* list end.
@@ -1987,9 +1985,6 @@ element_ass_subscr(PyObject *op, PyObject *item, PyObject *value)
19871985
}
19881986
}
19891987

1990-
assert(recycle == NULL);
1991-
assert(self->extra != NULL);
1992-
19931988
PyTypeObject *tp = Py_TYPE(self);
19941989
elementtreestate *st = get_elementtree_state_by_type(tp);
19951990
for (i = 0; i < newlen; i++) {

0 commit comments

Comments
 (0)