From 59ad110d7a7784d53d0b502eebce0346597a6bef Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Thu, 11 Jul 2019 10:59:05 +0200 Subject: bpo-37547: add _PyObject_CallMethodOneArg (GH-14685) --- Python/_warnings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/_warnings.c') diff --git a/Python/_warnings.c b/Python/_warnings.c index b1762e6bed..ecee399db6 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -164,7 +164,7 @@ check_matched(PyObject *obj, PyObject *arg) } /* Otherwise assume a regex filter and call its match() method */ - result = _PyObject_CallMethodIdObjArgs(obj, &PyId_match, arg, NULL); + result = _PyObject_CallMethodIdOneArg(obj, &PyId_match, arg); if (result == NULL) return -1; -- cgit v1.2.1