commit | 59ad110d7a7784d53d0b502eebce0346597a6bef | [log] [tgz] |
---|---|---|
author | Jeroen Demeyer <J.Demeyer@UGent.be> | Thu Jul 11 10:59:05 2019 +0200 |
committer | Inada Naoki <songofacandy@gmail.com> | Thu Jul 11 17:59:05 2019 +0900 |
tree | 8ccd39e358017efe2abe41912c2f9d567ee9f248 | |
parent | 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6 [diff] [blame] |
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
diff --git a/Python/marshal.c b/Python/marshal.c index b2daff2c..cb11c8c 100644 --- a/Python/marshal.c +++ b/Python/marshal.c
@@ -1653,7 +1653,7 @@ s = PyMarshal_WriteObjectToString(value, version); if (s == NULL) return NULL; - res = _PyObject_CallMethodIdObjArgs(file, &PyId_write, s, NULL); + res = _PyObject_CallMethodIdOneArg(file, &PyId_write, s); Py_DECREF(s); return res; }