mirror of
https://github.com/python/cpython.git
synced 2025-09-17 14:16:02 +00:00
Remove tp_print implementation (GH-7857)
This commit is contained in:
parent
9b7cf75721
commit
66ecefcfe7
1 changed files with 1 additions and 6 deletions
|
@ -176,11 +176,6 @@ PyObject* pysqlite_row_keys(pysqlite_Row* self, PyObject *Py_UNUSED(ignored))
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pysqlite_row_print(pysqlite_Row* self, FILE *fp, int flags)
|
|
||||||
{
|
|
||||||
return (&PyTuple_Type)->tp_print(self->data, fp, flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject* pysqlite_iter(pysqlite_Row* self)
|
static PyObject* pysqlite_iter(pysqlite_Row* self)
|
||||||
{
|
{
|
||||||
return PyObject_GetIter(self->data);
|
return PyObject_GetIter(self->data);
|
||||||
|
@ -235,7 +230,7 @@ PyTypeObject pysqlite_RowType = {
|
||||||
sizeof(pysqlite_Row), /* tp_basicsize */
|
sizeof(pysqlite_Row), /* tp_basicsize */
|
||||||
0, /* tp_itemsize */
|
0, /* tp_itemsize */
|
||||||
(destructor)pysqlite_row_dealloc, /* tp_dealloc */
|
(destructor)pysqlite_row_dealloc, /* tp_dealloc */
|
||||||
(printfunc)pysqlite_row_print, /* tp_print */
|
0, /* tp_print */
|
||||||
0, /* tp_getattr */
|
0, /* tp_getattr */
|
||||||
0, /* tp_setattr */
|
0, /* tp_setattr */
|
||||||
0, /* tp_reserved */
|
0, /* tp_reserved */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue