summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-02-14 04:42:56 (GMT)
committerGitHub <noreply@github.com>2020-02-14 04:42:56 (GMT)
commit7386a70746cf9aaf2d95db75d9201fb124f085df (patch)
treead8f8bf74a24ef84d9070da6f1f7b55d36f880eb /Python/errors.c
parenta9edf44a2de9b23a1690b36cdfeed7b41ab763bd (diff)
downloadcpython-7386a70746cf9aaf2d95db75d9201fb124f085df.zip
cpython-7386a70746cf9aaf2d95db75d9201fb124f085df.tar.gz
cpython-7386a70746cf9aaf2d95db75d9201fb124f085df.tar.bz2
closes bpo-39630: Update pointers to string literals to be const char *. (GH-18510)
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index f11b66e..61dc597 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -614,7 +614,7 @@ PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, P
#ifndef MS_WINDOWS
if (i != 0) {
- char *s = strerror(i);
+ const char *s = strerror(i);
message = PyUnicode_DecodeLocale(s, "surrogateescape");
}
else {