summaryrefslogtreecommitdiffstats
path: root/Objects/call.c
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-06-24 10:41:05 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-06-24 10:41:05 (GMT)
commita8b27e623d75377aabe50df27e97cab4e81a174a (patch)
tree91879278e60ec4e8c6a35f2688aa60cdb2a59a8a /Objects/call.c
parent47fbc4e45b35b3111e2d947a66490a43ac21d363 (diff)
downloadcpython-a8b27e623d75377aabe50df27e97cab4e81a174a.zip
cpython-a8b27e623d75377aabe50df27e97cab4e81a174a.tar.gz
cpython-a8b27e623d75377aabe50df27e97cab4e81a174a.tar.bz2
bpo-36974: inherit tp_vectorcall_offset unconditionally (GH-13858)
Diffstat (limited to 'Objects/call.c')
-rw-r--r--Objects/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/call.c b/Objects/call.c
index 8a1ce7f..bde5513 100644
--- a/Objects/call.c
+++ b/Objects/call.c
@@ -184,7 +184,7 @@ PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *kwargs)
/* get vectorcallfunc as in _PyVectorcall_Function, but without
* the _Py_TPFLAGS_HAVE_VECTORCALL check */
Py_ssize_t offset = Py_TYPE(callable)->tp_vectorcall_offset;
- if ((offset <= 0) || (!Py_TYPE(callable)->tp_call)) {
+ if (offset <= 0) {
PyErr_Format(PyExc_TypeError, "'%.200s' object does not support vectorcall",
Py_TYPE(callable)->tp_name);
return NULL;