Cleanup: pass multiple arguments to str.startswith
This commit is contained in:
@@ -531,8 +531,10 @@ class LazyFunctionEvalFilter:
|
||||
@staticmethod
|
||||
def frame_to_name(frame):
|
||||
function_name = frame.function()
|
||||
if (function_name.startswith("blender::fn::lazy_function::LazyFunction::execute")
|
||||
or function_name.startswith("blender::fn::lazy_function::Executor::push_to_task_pool")):
|
||||
if function_name.startswith((
|
||||
"blender::fn::lazy_function::LazyFunction::execute",
|
||||
"blender::fn::lazy_function::Executor::push_to_task_pool",
|
||||
)):
|
||||
return "Execute Lazy Function"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user