File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,9 +214,9 @@ imp_lock_held(PyObject *self, PyObject *args)
214214 if (!PyArg_ParseTuple (args , ":lock_held" ))
215215 return NULL ;
216216#ifdef WITH_THREAD
217- return PyInt_FromLong (import_lock_thread != -1 );
217+ return PyBool_FromLong (import_lock_thread != -1 );
218218#else
219- return PyInt_FromLong (0 );
219+ return PyBool_FromLong (0 );
220220#endif
221221}
222222
@@ -2295,7 +2295,7 @@ imp_is_builtin(PyObject *self, PyObject *args)
22952295 char * name ;
22962296 if (!PyArg_ParseTuple (args , "s:is_builtin" , & name ))
22972297 return NULL ;
2298- return PyInt_FromLong (is_builtin (name ));
2298+ return PyBool_FromLong (is_builtin (name ));
22992299}
23002300
23012301static PyObject *
@@ -2306,7 +2306,7 @@ imp_is_frozen(PyObject *self, PyObject *args)
23062306 if (!PyArg_ParseTuple (args , "s:is_frozen" , & name ))
23072307 return NULL ;
23082308 p = find_frozen (name );
2309- return PyInt_FromLong ((long ) (p == NULL ? 0 : p -> size ));
2309+ return PyBool_FromLong ((long ) (p == NULL ? 0 : p -> size ));
23102310}
23112311
23122312static FILE *
You can’t perform that action at this time.
0 commit comments