Skip to content

Commit 18e60cf

Browse files
committed
fix code style check failure by creating inner function rather than assigning a lambda definition
1 parent 905b941 commit 18e60cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4459,8 +4459,10 @@ def copy_build_dirs_logs_failed_install(application_log, silent, app, easyconfig
44594459
msg = "Path to copy build dirs of failed installs to is subdirectory of build directory; not copying"
44604460
print_warning(msg, log=_log, silent=silent)
44614461
else:
4462-
operation = lambda src, dest: copy_dir(src, dest, dirs_exist_ok=True)
44634462
msg = f"Build directory of failed installation copied to {build_dirs_path}"
4463+
def operation(src, dest):
4464+
copy_dir(src, dest, dirs_exist_ok=True)
4465+
44644466
operation_args.append((operation, [app.builddir], build_dirs_path, msg))
44654467

44664468
persistence_paths = create_non_existing_paths(target_path for (_, _, target_path, _) in operation_args)

0 commit comments

Comments
 (0)