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 c70ab02 commit 0d765e3Copy full SHA for 0d765e3
1 file changed
Python/import.c
@@ -1983,13 +1983,14 @@ _imp_extension_suffixes_impl(PyObject *module)
1983
/*[clinic end generated code: output=0bf346e25a8f0cd3 input=ecdeeecfcb6f839e]*/
1984
{
1985
PyObject *list;
1986
- const char *suffix;
1987
- unsigned int index = 0;
1988
1989
list = PyList_New(0);
1990
if (list == NULL)
1991
return NULL;
1992
#ifdef HAVE_DYNAMIC_LOADING
+ const char *suffix;
+ unsigned int index = 0;
1993
+
1994
while ((suffix = _PyImport_DynLoadFiletab[index])) {
1995
PyObject *item = PyUnicode_FromString(suffix);
1996
if (item == NULL) {
0 commit comments