Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e20ad35

Browse files
committed
Move decl so it compiles with C89.
1 parent 8d2ef87 commit e20ad35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/importdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ PyObject *
2222
_PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
2323
{
2424
PyObject *m;
25+
PyObject *path;
2526
char *lastdot, *shortname, *packagecontext, *oldcontext;
2627
dl_funcptr p;
2728

@@ -62,7 +63,6 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
6263
return NULL;
6364
}
6465
/* Remember the filename as the __file__ attribute */
65-
PyObject *path;
6666
path = PyUnicode_DecodeFSDefault(pathname);
6767
if (PyModule_AddObject(m, "__file__", path) < 0)
6868
PyErr_Clear(); /* Not important enough to report */

0 commit comments

Comments
 (0)