summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-07-15 17:14:51 (GMT)
committerThomas Heller <theller@ctypes.org>2008-07-15 17:14:51 (GMT)
commitd88ddfa94ae112957e49093550c096415ef0cd33 (patch)
treed09a4c6c401d521d5151b3aee64b5cd7182d145b /Python/pythonrun.c
parent0d755b4e2b6af874781e01dd1ceb70e3a9b84045 (diff)
downloadcpython-d88ddfa94ae112957e49093550c096415ef0cd33.zip
cpython-d88ddfa94ae112957e49093550c096415ef0cd33.tar.gz
cpython-d88ddfa94ae112957e49093550c096415ef0cd33.tar.bz2
Make these files to compile again under Windows.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index ad758a6..d13563f 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1340,9 +1340,10 @@ print_exception(PyObject *f, PyObject *value)
/* Don't do anything else */
}
else {
- assert(PyExceptionClass_Check(type));
PyObject* moduleName;
- char* className = PyExceptionClass_Name(type);
+ char* className;
+ assert(PyExceptionClass_Check(type));
+ className = PyExceptionClass_Name(type);
if (className != NULL) {
char *dot = strrchr(className, '.');
if (dot != NULL)