diff options
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 06c87b0c62d..c4edcca4f76 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2333,8 +2333,7 @@ bytes_fromhex_impl(PyTypeObject *type, PyObject *string) { PyObject *result = _PyBytes_FromHex(string, 0); if (type != &PyBytes_Type && result != NULL) { - Py_SETREF(result, PyObject_CallFunctionObjArgs((PyObject *)type, - result, NULL)); + Py_SETREF(result, _PyObject_CallOneArg((PyObject *)type, result)); } return result; } |