summaryrefslogtreecommitdiff
path: root/Modules/_testbuffer.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-02-24 00:40:43 -0600
committerGitHub <noreply@github.com>2020-02-23 22:40:43 -0800
commitc3fa634096eedbaf477698adab666f03085a7928 (patch)
tree3e5c364e3d80907b9555bbac95945ef9d1948395 /Modules/_testbuffer.c
parent4015d1cda3cdba869103779eb6ff32ad798ff885 (diff)
downloadcpython-git-c3fa634096eedbaf477698adab666f03085a7928.tar.gz
closes bpo-39736: const strings in Modules/_datetimemodule.c and Modules/_testbuffer.c (GH-18637)
Diffstat (limited to 'Modules/_testbuffer.c')
-rw-r--r--Modules/_testbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c
index f4c2b590ac..d8321768bc 100644
--- a/Modules/_testbuffer.c
+++ b/Modules/_testbuffer.c
@@ -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);
}