diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-19 21:03:34 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-19 21:03:34 +0300 |
commit | 6e75c19396402b107f1dfffa8746c6b8b679a9a4 (patch) | |
tree | deb6036092faf8a0659406cbed73724928202dcd /Python/codecs.c | |
parent | 75e7239170da646e00c00e92845d3549781818ea (diff) | |
download | cpython-6e75c19396402b107f1dfffa8746c6b8b679a9a4.tar.gz |
Issue #1772673: The type of `char*` arguments now changed to `const char*`.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index cb9f0d8a70..c541ba02b1 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -441,7 +441,7 @@ int PyCodec_RegisterError(const char *name, PyObject *error) return -1; } return PyDict_SetItemString(interp->codec_error_registry, - (char *)name, error); + name, error); } /* Lookup the error handling callback function registered under the @@ -457,7 +457,7 @@ PyObject *PyCodec_LookupError(const char *name) if (name==NULL) name = "strict"; - handler = PyDict_GetItemString(interp->codec_error_registry, (char *)name); + handler = PyDict_GetItemString(interp->codec_error_registry, name); if (!handler) PyErr_Format(PyExc_LookupError, "unknown error handler name '%.400s'", name); else |