bpo-41861: Convert _sqlite3 CursorType and ConnectionType to heap types (GH-22478)

This commit is contained in:
Erlend Egeberg Aasland 2020-10-01 16:03:21 +02:00 • committed by GitHub
parent 9031bd4fa4
commit 256e54acdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 102 deletions

View file

@ -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;
}