Skip to content

Commit

Permalink
Update file_ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
celsiusnarhwal committed Dec 8, 2024
1 parent f07ebbb commit 88be361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hachitool/file_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def file(self):

@validate_call(config=ConfigDict(coerce_numbers_to_str=True))
def write(self, content: str, append: bool = True):
self.file.open("a" if append else "w", newline="\n").write(content)
print(content, file=self.file.open("a" if append else "w"))


@multimethod
Expand Down

0 comments on commit 88be361

Please sign in to comment.