[Python-3000-checkins] r58472 - python/branches/py3k/Python/importdl.c
neal.norwitz
python-3000-checkins at python.org
Mon Oct 15 18:08:27 CEST 2007
Author: neal.norwitz
Date: Mon Oct 15 18:08:26 2007
New Revision: 58472
Modified:
python/branches/py3k/Python/importdl.c
Log:
Move decl so it compiles with C89.
Modified: python/branches/py3k/Python/importdl.c
==============================================================================
--- python/branches/py3k/Python/importdl.c (original)
+++ python/branches/py3k/Python/importdl.c Mon Oct 15 18:08:26 2007
@@ -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 */
More information about the Python-3000-checkins
mailing list