Skip to content

Commit a6f9e4f

Browse files
committed
rename to callmethod
1 parent ab0e275 commit a6f9e4f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Objects/call.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ _PyObject_CallFunction_SizeT(PyObject *callable, const char *format, ...)
617617
would allocate. Using the StackRef variant keeps method resolution
618618
reference-count-free on the fast path so it scales in free-threading. */
619619
static PyObject *
620-
callmethod_va(PyObject *obj, PyObject *name,
620+
callmethod(PyObject *obj, PyObject *name,
621621
const char *format, va_list va)
622622
{
623623
PyThreadState *tstate = _PyThreadState_GET();
@@ -700,7 +700,7 @@ PyObject_CallMethod(PyObject *obj, const char *name, const char *format, ...)
700700

701701
va_list va;
702702
va_start(va, format);
703-
PyObject *retval = callmethod_va(obj, name_obj, format, va);
703+
PyObject *retval = callmethod(obj, name_obj, format, va);
704704
va_end(va);
705705

706706
Py_DECREF(name_obj);
@@ -725,7 +725,7 @@ PyEval_CallMethod(PyObject *obj, const char *name, const char *format, ...)
725725

726726
va_list va;
727727
va_start(va, format);
728-
PyObject *retval = callmethod_va(obj, name_obj, format, va);
728+
PyObject *retval = callmethod(obj, name_obj, format, va);
729729
va_end(va);
730730

731731
Py_DECREF(name_obj);
@@ -744,7 +744,7 @@ _PyObject_CallMethod(PyObject *obj, PyObject *name,
744744

745745
va_list va;
746746
va_start(va, format);
747-
PyObject *retval = callmethod_va(obj, name, format, va);
747+
PyObject *retval = callmethod(obj, name, format, va);
748748
va_end(va);
749749

750750
return retval;
@@ -770,7 +770,7 @@ _Py_COMP_DIAG_POP
770770

771771
va_list va;
772772
va_start(va, format);
773-
PyObject *retval = callmethod_va(obj, name_obj, format, va);
773+
PyObject *retval = callmethod(obj, name_obj, format, va);
774774
va_end(va);
775775

776776
return retval;
@@ -795,7 +795,7 @@ _PyObject_CallMethod_SizeT(PyObject *obj, const char *name,
795795

796796
va_list va;
797797
va_start(va, format);
798-
PyObject *retval = callmethod_va(obj, name_obj, format, va);
798+
PyObject *retval = callmethod(obj, name_obj, format, va);
799799
va_end(va);
800800

801801
Py_DECREF(name_obj);

0 commit comments

Comments
 (0)