summaryrefslogtreecommitdiff
path: root/Modules/_json.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-07-17 14:16:04 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-07-17 14:16:04 +0300
commit9eb921ecf5483ed903332ec829264bcf38aeb5f5 (patch)
treeb57f01499062bf33bc7c6924aad9bfbb2cdf2f6f /Modules/_json.c
parent15170dd81c80aa53bc56935ceacd8ac85d13c265 (diff)
parentcf1ebc38f43e1734af613c2fc491b67a11e8e2ea (diff)
downloadcpython-9eb921ecf5483ed903332ec829264bcf38aeb5f5.tar.gz
Issue #27419: Added temporary workaround for subinterpreters.
Diffstat (limited to 'Modules/_json.c')
-rw-r--r--Modules/_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index f82af347cb..d3dbf98805 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -112,7 +112,7 @@ encoder_listencode_dict(PyEncoderObject *s, _PyAccu *acc, PyObject *dct, Py_ssiz
static PyObject *
_encoded_const(PyObject *obj);
static void
-raise_errmsg(char *msg, PyObject *s, Py_ssize_t end);
+raise_errmsg(const char *msg, PyObject *s, Py_ssize_t end);
static PyObject *
encoder_encode_string(PyEncoderObject *s, PyObject *obj);
static PyObject *
@@ -321,7 +321,7 @@ escape_unicode(PyObject *pystr)
}
static void
-raise_errmsg(char *msg, PyObject *s, Py_ssize_t end)
+raise_errmsg(const char *msg, PyObject *s, Py_ssize_t end)
{
/* Use JSONDecodeError exception to raise a nice looking ValueError subclass */
static PyObject *JSONDecodeError = NULL;