Commit 559c7bf1 authored by gsamain's avatar gsamain

Don't check function calls locks if it's not a function

parent 80ef344d
...@@ -5993,7 +5993,7 @@ class SimpleCallNode(CallNode): ...@@ -5993,7 +5993,7 @@ class SimpleCallNode(CallNode):
func_type = self.function_type() func_type = self.function_type()
if func_type.is_pyobject: if func_type.is_pyobject:
self.arg_tuple.ensure_rhs_locked(env) self.arg_tuple.ensure_rhs_locked(env)
else: elif func_type.is_cfunction:
max_nargs = len(func_type.args) max_nargs = len(func_type.args)
actual_nargs = len(self.args) actual_nargs = len(self.args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment