diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-06-15 08:09:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 08:09:43 (GMT) |
commit | ceeef10cdbc08561f9954e13bbed1cb2299a8c72 (patch) | |
tree | 8b4678e015343dc2f052c672d3a4be00ef313e0f /Python/pythonrun.c | |
parent | 08f127a3cad8ce4eb281d30d9488c91b0fd7cfed (diff) | |
download | cpython-ceeef10cdbc08561f9954e13bbed1cb2299a8c72.zip cpython-ceeef10cdbc08561f9954e13bbed1cb2299a8c72.tar.gz cpython-ceeef10cdbc08561f9954e13bbed1cb2299a8c72.tar.bz2 |
bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 26f74c8..3d40c79 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -774,12 +774,12 @@ print_exception(PyObject *f, PyObject *value) } else { PyObject* moduleName; - char* className; + const char *className; _Py_IDENTIFIER(__module__); assert(PyExceptionClass_Check(type)); className = PyExceptionClass_Name(type); if (className != NULL) { - char *dot = strrchr(className, '.'); + const char *dot = strrchr(className, '.'); if (dot != NULL) className = dot+1; } |