summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-02-13 22:42:56 -0600
committerGitHub <noreply@github.com>2020-02-13 20:42:56 -0800
commit7386a70746cf9aaf2d95db75d9201fb124f085df (patch)
treead8f8bf74a24ef84d9070da6f1f7b55d36f880eb /Python/codecs.c
parenta9edf44a2de9b23a1690b36cdfeed7b41ab763bd (diff)
downloadcpython-git-7386a70746cf9aaf2d95db75d9201fb124f085df.tar.gz
closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510)
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index ce86cb20cc..e5bcdb09fc 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -1407,7 +1407,7 @@ static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc)
static int _PyCodecRegistry_Init(void)
{
static struct {
- char *name;
+ const char *name;
PyMethodDef def;
} methods[] =
{