diff Python/importdl.c @ 43573:50599bbb0c67

Move decl so it compiles with C89.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 15 Oct 2007 16:08:26 +0000
parents 19319e70fc3e
children 94f64f11fdd0
line wrap: on
line diff
--- a/Python/importdl.c	Mon Oct 15 15:42:31 2007 +0000
+++ b/Python/importdl.c	Mon Oct 15 16:08:26 2007 +0000
@@ -22,6 +22,7 @@
 _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
 {
 	PyObject *m;
+	PyObject *path;
 	char *lastdot, *shortname, *packagecontext, *oldcontext;
 	dl_funcptr p;
 
@@ -62,7 +63,6 @@
 		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 */