mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-41861: Convert _sqlite3 CursorType and ConnectionType to heap types (GH-22478)
This commit is contained in:
parent
9031bd4fa4
commit
256e54acdb
6 changed files with 74 additions and 102 deletions
|
|
@ -49,7 +49,7 @@ pysqlite_row_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
if (!PyArg_ParseTuple(args, "OO", &cursor, &data))
|
||||
return NULL;
|
||||
|
||||
if (!PyObject_TypeCheck((PyObject*)cursor, &pysqlite_CursorType)) {
|
||||
if (!PyObject_TypeCheck((PyObject*)cursor, pysqlite_CursorType)) {
|
||||
PyErr_SetString(PyExc_TypeError, "instance of cursor required for first argument");
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue