diff options
author | Benjamin Peterson <benjamin@python.org> | 2020-02-14 05:05:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 05:05:00 (GMT) |
commit | 0d860dd43c72dc7046a5d18fc72d495cadd4a2df (patch) | |
tree | fe13da348427ff9ffb9c6ceb10cd0c291a0b733e /Python/codecs.c | |
parent | 28fc1bac0fbe1f4ae2e3dcba1dee38d2c063a539 (diff) | |
download | cpython-0d860dd43c72dc7046a5d18fc72d495cadd4a2df.zip cpython-0d860dd43c72dc7046a5d18fc72d495cadd4a2df.tar.gz cpython-0d860dd43c72dc7046a5d18fc72d495cadd4a2df.tar.bz2 |
[3.8] closes bpo-39630: Update pointers to string literals to be const char *. (GH-18511)
(cherry picked from commit 7386a70746cf9aaf2d95db75d9201fb124f085df)
Co-authored-by: Andy Lester <andy@petdance.com>
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index d4b34f8..4bd28ec 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -1415,7 +1415,7 @@ static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc) static int _PyCodecRegistry_Init(void) { static struct { - char *name; + const char *name; PyMethodDef def; } methods[] = { |