Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ef319 commit 5eb4f59Copy full SHA for 5eb4f59
1 file changed
Python/import.c
@@ -948,8 +948,12 @@ static int
948
init_builtin(PyObject *name)
949
{
950
struct _inittab *p;
951
+ PyObject *mod;
952
- if (_PyImport_FindExtensionObject(name, name) != NULL)
953
+ mod = _PyImport_FindExtensionObject(name, name);
954
+ if (PyErr_Occurred())
955
+ return -1;
956
+ if (mod != NULL)
957
return 1;
958
959
for (p = PyImport_Inittab; p->name != NULL; p++) {
0 commit comments