[Python-checkins] Remove tp_print implementation (GH-7857)
INADA Naoki
webhook-mailer at python.org
Sat Jun 23 08:08:46 EDT 2018
https://github.com/python/cpython/commit/66ecefcfe77348ce12d3a951e8e6cd3ad274b24a
commit: 66ecefcfe77348ce12d3a951e8e6cd3ad274b24a
branch: master
author: jdemeyer <jdemeyer at cage.ugent.be>
committer: INADA Naoki <methane at users.noreply.github.com>
date: 2018-06-23T21:08:43+09:00
summary:
Remove tp_print implementation (GH-7857)
files:
M Modules/_sqlite/row.c
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c
index 64872e8ddfc1..2fc26a8822dc 100644
--- a/Modules/_sqlite/row.c
+++ b/Modules/_sqlite/row.c
@@ -176,11 +176,6 @@ PyObject* pysqlite_row_keys(pysqlite_Row* self, PyObject *Py_UNUSED(ignored))
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)
{
return PyObject_GetIter(self->data);
@@ -235,7 +230,7 @@ PyTypeObject pysqlite_RowType = {
sizeof(pysqlite_Row), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)pysqlite_row_dealloc, /* tp_dealloc */
- (printfunc)pysqlite_row_print, /* tp_print */
+ 0, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
More information about the Python-checkins
mailing list