Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
elcorto committed Feb 15, 2024
1 parent a873c79 commit ae20489
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/psweep/psweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit ae20489

Please sign in to comment.