Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
jrapin committed Sep 18, 2024
1 parent 59db80d commit 6574cee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion submitit/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def _format_id(self, path: tp.Union[Path, str]) -> Path:
replaced_path = replaced_path.replace("%a", array_index[0])
return Path(replaced_path.replace("%A", array_id))

def move_temporary_file(self, tmp_path: tp.Union[Path, str], name: str, keep_as_symlink: bool = False) -> None:
def move_temporary_file(
self, tmp_path: tp.Union[Path, str], name: str, keep_as_symlink: bool = False
) -> None:
self.folder.mkdir(parents=True, exist_ok=True)
Path(tmp_path).rename(getattr(self, name))
if keep_as_symlink:
Expand Down

0 comments on commit 6574cee

Please sign in to comment.