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 461c813 commit 44b4b6aCopy full SHA for 44b4b6a
1 file changed
Python/import.c
@@ -426,12 +426,13 @@ PyImport_Cleanup(void)
426
long
427
PyImport_GetMagicNumber(void)
428
{
429
+ long res;
430
PyInterpreterState *interp = PyThreadState_Get()->interp;
431
PyObject *pyc_magic = PyObject_GetAttrString(interp->importlib,
432
"_RAW_MAGIC_NUMBER");
433
if (pyc_magic == NULL)
434
return -1;
- long res = PyLong_AsLong(pyc_magic);
435
+ res = PyLong_AsLong(pyc_magic);
436
Py_DECREF(pyc_magic);
437
return res;
438
}
0 commit comments