mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Issue #1772673: The type of char*
arguments now changed to const char*
.
This commit is contained in:
parent
80ab13067e
commit
c679227e31
39 changed files with 148 additions and 137 deletions
|
@ -121,11 +121,11 @@ BaseException_str(PyBaseExceptionObject *self)
|
|||
static PyObject *
|
||||
BaseException_repr(PyBaseExceptionObject *self)
|
||||
{
|
||||
char *name;
|
||||
char *dot;
|
||||
const char *name;
|
||||
const char *dot;
|
||||
|
||||
name = (char *)Py_TYPE(self)->tp_name;
|
||||
dot = strrchr(name, '.');
|
||||
name = Py_TYPE(self)->tp_name;
|
||||
dot = (const char *) strrchr(name, '.');
|
||||
if (dot != NULL) name = dot+1;
|
||||
|
||||
return PyUnicode_FromFormat("%s%R", name, self->args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue