summaryrefslogtreecommitdiff
path: root/Modules/_json.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2016-07-17 14:12:59 +0200
committerStefan Krah <skrah@bytereef.org>2016-07-17 14:12:59 +0200
commit5482ab1b94bd1679fb491c1195e6f0757afab4d4 (patch)
tree93dd61331f9f49648394ea1d6b02856604ae6e82 /Modules/_json.c
parent47bf84d959f87af22da5c325a67a6b0b89dd9a77 (diff)
parent9eb921ecf5483ed903332ec829264bcf38aeb5f5 (diff)
downloadcpython-5482ab1b94bd1679fb491c1195e6f0757afab4d4.tar.gz
Merge 3.5.
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;