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)