summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-12 11:58:27 (GMT)
committerGitHub <noreply@github.com>2020-04-12 11:58:27 (GMT)
commit8f87eefe7f0576c05c488874eb9601a7a87c7312 (patch)
tree10ea36d1f702ae9e8bc34bcc88588868706948f6 /Modules/readline.c
parent3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a (diff)
downloadcpython-8f87eefe7f0576c05c488874eb9601a7a87c7312.zip
cpython-8f87eefe7f0576c05c488874eb9601a7a87c7312.tar.gz
cpython-8f87eefe7f0576c05c488874eb9601a7a87c7312.tar.bz2
bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472)
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 225d06b..12d6cc7 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -234,7 +234,7 @@ static PyObject *
write_history_file(PyObject *self, PyObject *args)
{
PyObject *filename_obj = Py_None, *filename_bytes;
- char *filename;
+ const char *filename;
int err;
if (!PyArg_ParseTuple(args, "|O:write_history_file", &filename_obj))
return NULL;
@@ -270,7 +270,7 @@ append_history_file(PyObject *self, PyObject *args)
{
int nelements;
PyObject *filename_obj = Py_None, *filename_bytes;
- char *filename;
+ const char *filename;
int err;
if (!PyArg_ParseTuple(args, "i|O:append_history_file", &nelements, &filename_obj))
return NULL;