Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 684ed98

Browse files
committed
remove unused code for tp_call
1 parent aaec403 commit 684ed98

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

Python/ceval.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,20 +2023,8 @@ call_object(func, arg)
20232023
binaryfunc call;
20242024
object *result;
20252025

2026-
if (call = func->ob_type->tp_call) {
2027-
#if 0
2028-
/* XXX Why is this here??? */
2029-
int size = gettuplesize(arg);
2030-
if (arg) {
2031-
size = gettuplesize(arg);
2032-
if (size == 1)
2033-
arg = GETTUPLEITEM(arg, 0);
2034-
else if (size == 0)
2035-
arg = NULL;
2036-
}
2037-
#endif
2026+
if (call = func->ob_type->tp_call)
20382027
result = (*call)(func, arg);
2039-
}
20402028
else if (is_instancemethodobject(func) || is_funcobject(func))
20412029
result = call_function(func, arg);
20422030
else

0 commit comments

Comments
 (0)