Skip to content

Commit f6b1d6b

Browse files
committed
Deleted line breaks
1 parent 87f6f0b commit f6b1d6b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • find-project-root/utils/lib/data

find-project-root/utils/lib/data/file.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33

44
def atomic_write(file_path: Union[Path, str], data: str, encoding: str ='utf-8') -> None: # to prevent TOCTOU
55
import os
6-
76
file_path = Path(file_path)
87
file_path.parent.mkdir(parents=True, exist_ok=True)
98
tmp_path = file_path.parent / f'.{file_path.name}.tmp'
10-
119
try:
1210
with open(tmp_path, 'w', encoding=encoding) as file:
1311
file.write(data) ; file.flush() ; os.fsync(file.fileno())

0 commit comments

Comments
 (0)