diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-12 14:58:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-12 14:58:27 +0300 |
| commit | 8f87eefe7f0576c05c488874eb9601a7a87c7312 (patch) | |
| tree | 10ea36d1f702ae9e8bc34bcc88588868706948f6 /Modules/_elementtree.c | |
| parent | 3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a (diff) | |
| download | cpython-git-8f87eefe7f0576c05c488874eb9601a7a87c7312.tar.gz | |
bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472)
Diffstat (limited to 'Modules/_elementtree.c')
| -rw-r--r-- | Modules/_elementtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index c0c741e51c..10d78dd58f 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -1153,7 +1153,7 @@ checkpath(PyObject* tag) return 0; } if (PyBytes_Check(tag)) { - char *p = PyBytes_AS_STRING(tag); + const char *p = PyBytes_AS_STRING(tag); const Py_ssize_t len = PyBytes_GET_SIZE(tag); if (len >= 3 && p[0] == '{' && ( p[1] == '}' || (p[1] == '*' && p[2] == '}'))) { |
