Skip to content

Commit

Permalink
Fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Gouvernathor committed May 25, 2024
1 parent d1c69c2 commit 2b739c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parliamentarch/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def from_any(cls, o, /):
def write_from_get(get_func: Callable[..., str]) -> Callable[..., None]:
def write_func(file, /, *args, **kwargs):
if isinstance(file, str):
with open(file, "w") as f:
with open(file, "w", encoding="UTF-8") as f:
return write_func(f, *args, **kwargs)
print(get_func(*args, **kwargs), file=file)

Expand Down

0 comments on commit 2b739c9

Please sign in to comment.