summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-15 16:08:26 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-15 16:08:26 +0000
commitc7a133b98a23a47b65c37ca45c9bd3b463ab892c (patch)
treeea754a74ec7ffc63b9f5e42d1593921c28ebfe92 /Python
parent89f0bbc77c71188de16d89655ea8fb7d940667b0 (diff)
downloadcpython-c7a133b98a23a47b65c37ca45c9bd3b463ab892c.tar.gz
Move decl so it compiles with C89.
Diffstat (limited to 'Python')
-rw-r--r--Python/importdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 7978c48b3d..19e7d6deb1 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -22,6 +22,7 @@ PyObject *
_PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
{
PyObject *m;
+ PyObject *path;
char *lastdot, *shortname, *packagecontext, *oldcontext;
dl_funcptr p;
@@ -62,7 +63,6 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
return NULL;
}
/* Remember the filename as the __file__ attribute */
- PyObject *path;
path = PyUnicode_DecodeFSDefault(pathname);
if (PyModule_AddObject(m, "__file__", path) < 0)
PyErr_Clear(); /* Not important enough to report */