Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 48477:e26c724d5e23
Make these files to compile again under Windows.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Tue, 15 Jul 2008 17:14:51 +0000 |
| parents | 2ee09afee126 |
| children | aca5b2e6a66f |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue Jul 15 17:14:09 2008 +0000 +++ b/Python/pythonrun.c Tue Jul 15 17:14:51 2008 +0000 @@ -1340,9 +1340,10 @@ /* Don't do anything else */ } else { + PyObject* moduleName; + char* className; assert(PyExceptionClass_Check(type)); - PyObject* moduleName; - char* className = PyExceptionClass_Name(type); + className = PyExceptionClass_Name(type); if (className != NULL) { char *dot = strrchr(className, '.'); if (dot != NULL)
