File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ pysqlite_row_subscript(PyObject *op, PyObject *idx)
154154 PyErr_Format (PyExc_IndexError , "No item with key %R" , idx );
155155 return NULL ;
156156 }
157- Py_ssize_t nitems = PyTuple_Size (self -> description );
157+ Py_ssize_t nitems = PyTuple_GET_SIZE (self -> description );
158158
159159 for (Py_ssize_t i = 0 ; i < nitems ; i ++ ) {
160160 PyObject * obj ;
@@ -208,7 +208,7 @@ pysqlite_row_keys_impl(pysqlite_Row *self)
208208 return list ;
209209 }
210210
211- Py_ssize_t nitems = PyTuple_Size (self -> description );
211+ Py_ssize_t nitems = PyTuple_GET_SIZE (self -> description );
212212 for (Py_ssize_t i = 0 ; i < nitems ; i ++ ) {
213213 PyObject * descr = PyTuple_GET_ITEM (self -> description , i );
214214 PyObject * name = PyTuple_GET_ITEM (descr , 0 );
You can’t perform that action at this time.
0 commit comments