File tree 1 file changed +1
-19
lines changed
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)
1530
1530
return PyLong_FromLong (old_limit );
1531
1531
}
1532
1532
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
-
1549
1533
static PyType_Slot error_slots [] = {
1550
- {Py_tp_traverse , error_traverse },
1551
- {Py_tp_dealloc , error_dealloc },
1552
1534
{0 , NULL },
1553
1535
};
1554
1536
1555
1537
PyType_Spec error_spec = {
1556
1538
.name = "_csv.Error" ,
1557
- .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC ,
1539
+ .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,
1558
1540
.slots = error_slots ,
1559
1541
};
1560
1542
You can’t perform that action at this time.
0 commit comments