summaryrefslogtreecommitdiffstats
path: root/Modules/_json.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-08 23:33:39 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-08 23:33:39 (GMT)
commit4c38154a432885a933b539c2682e66caaf440117 (patch)
tree84f6d0fbe46ac26057383ea0606754f7d28eec0c /Modules/_json.c
parentef7def94c7c681a10031e88efd6511f5c4ff2c75 (diff)
downloadcpython-4c38154a432885a933b539c2682e66caaf440117.zip
cpython-4c38154a432885a933b539c2682e66caaf440117.tar.gz
cpython-4c38154a432885a933b539c2682e66caaf440117.tar.bz2
Don't parenthesis in _PyObject_CallMethodId() format
Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient.
Diffstat (limited to 'Modules/_json.c')
-rw-r--r--Modules/_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index d3dbf98..5cf39f2 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -335,7 +335,7 @@ raise_errmsg(const char *msg, PyObject *s, Py_ssize_t end)
if (JSONDecodeError == NULL)
return;
}
- exc = PyObject_CallFunction(JSONDecodeError, "(zOn)", msg, s, end);
+ exc = PyObject_CallFunction(JSONDecodeError, "zOn", msg, s, end);
if (exc) {
PyErr_SetObject(JSONDecodeError, exc);
Py_DECREF(exc);