Skip to content

Commit

Permalink
leave encoding unspecified in signal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefmih committed Mar 26, 2024
1 parent 90ca41d commit a911fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def handle_signal(signum, _):
allowing other processes to stop doing work
"""
print(f"handling signal {signum}")
with open(exit_file(), "wb", encoding="utf-8") as f:
with open(exit_file(), "wb") as f:
f.write(signum)


Expand Down

0 comments on commit a911fee

Please sign in to comment.