Skip to content

Commit f41b623

Browse files
fix formatting, remove redundant check
1 parent 1d841b0 commit f41b623

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Python/specialize.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,6 @@ _Py_Specialize_CallFunction(PyObject **stack_pointer, uint8_t original_oparg,
647647
PyObject *callable = stack_pointer[-(original_oparg + 1)];
648648
_PyAdaptiveEntry *cache0 = &cache->adaptive;
649649
_PyCallFunctionCache *cache1 = &cache[-1].call_function;
650-
if (!PyCallable_Check(callable)) {
651-
goto fail;
652-
}
653650
/* Specialize C functions */
654651
if (PyCFunction_CheckExact(callable)) {
655652
PyCFunctionObject *meth = (PyCFunctionObject *)callable;
@@ -705,4 +702,4 @@ _Py_Specialize_CallFunction(PyObject **stack_pointer, uint8_t original_oparg,
705702
assert(!PyErr_Occurred());
706703
cache0->counter = saturating_start();
707704
return 0;
708-
}
705+
}

0 commit comments

Comments
 (0)