From 762f93ff2efd6b7ef0177cad57939c0ab2002eac Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Mon, 8 Jul 2019 10:19:25 +0200 Subject: bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) --- Python/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index a7d40c132d..b935341636 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -1263,7 +1263,7 @@ write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type, } /* Explicitly call file.flush() */ - PyObject *res = _PyObject_CallMethodId(file, &PyId_flush, NULL); + PyObject *res = _PyObject_CallMethodIdNoArgs(file, &PyId_flush); if (!res) { return -1; } -- cgit v1.2.1