mirror of
https://github.com/python/cpython.git
synced 2025-07-13 06:15:17 +00:00
Make these files to compile again under Windows.
This commit is contained in:
parent
0d755b4e2b
commit
d88ddfa94a
2 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue