mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
closes bpo-39736: const strings in Modules/_datetimemodule.c and Modules/_testbuffer.c (GH-18637)
This commit is contained in:
parent
4015d1cda3
commit
c3fa634096
2 changed files with 4 additions and 4 deletions
|
|
@ -2050,7 +2050,7 @@ static PyObject *
|
|||
ndarray_get_format(NDArrayObject *self, void *closure)
|
||||
{
|
||||
Py_buffer *base = &self->head->base;
|
||||
char *fmt = base->format ? base->format : "";
|
||||
const char *fmt = base->format ? base->format : "";
|
||||
return PyUnicode_FromString(fmt);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue