Skip to content

Commit b8772d6

Browse files
author
Erlend E. Aasland
committed
Revert _csv.Error changes
1 parent 01edb37 commit b8772d6

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

Modules/_csv.c

+1-19
Original file line numberDiff line numberDiff line change
@@ -1530,31 +1530,13 @@ csv_field_size_limit(PyObject *module, PyObject *args)
15301530
return PyLong_FromLong(old_limit);
15311531
}
15321532

1533-
static void
1534-
error_dealloc(PyObject *self)
1535-
{
1536-
PyObject_GC_UnTrack(self);
1537-
PyTypeObject *tp = Py_TYPE(self);
1538-
tp->tp_free((PyObject *)self);
1539-
Py_DECREF(tp);
1540-
}
1541-
1542-
static int
1543-
error_traverse(PyObject *self, visitproc visit, void *arg)
1544-
{
1545-
Py_VISIT(Py_TYPE(self));
1546-
return 0;
1547-
}
1548-
15491533
static PyType_Slot error_slots[] = {
1550-
{Py_tp_traverse, error_traverse},
1551-
{Py_tp_dealloc, error_dealloc},
15521534
{0, NULL},
15531535
};
15541536

15551537
PyType_Spec error_spec = {
15561538
.name = "_csv.Error",
1557-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
1539+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15581540
.slots = error_slots,
15591541
};
15601542

0 commit comments

Comments
 (0)