From ae204898ab5b8de7ec9fbcf89fa985d42bb4ad6a Mon Sep 17 00:00:00 2001 From: Steve Schmerler Date: Thu, 15 Feb 2024 12:48:17 +0100 Subject: [PATCH] WIP --- src/psweep/psweep.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/psweep/psweep.py b/src/psweep/psweep.py index f5301dc..baf9977 100644 --- a/src/psweep/psweep.py +++ b/src/psweep/psweep.py @@ -121,10 +121,9 @@ def flatten(seq): yield subitem -def file_write(fn: str, txt: str, mode='w'): +def file_write(fn: str, txt: str, mode="w"): makedirs(os.path.dirname(fn)) - - with open(fn, mode=mode) as fd: + with open(fn, mode=mode) as fd: fd.write(txt)