mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Don't parenthesis in _PyObject_CallMethodId() format
Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient.
This commit is contained in:
parent
ef7def94c7
commit
4c38154a43
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue