File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff 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-
15491533static PyType_Slot error_slots [] = {
1550- {Py_tp_traverse , error_traverse },
1551- {Py_tp_dealloc , error_dealloc },
15521534 {0 , NULL },
15531535};
15541536
15551537PyType_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
You can’t perform that action at this time.
0 commit comments