Fix 'Using open without explicitly specifying an encoding'

In preparation for running pylint on more code.
This commit is contained in:
Štěpán Balážik 2026-01-27 23:28:06 +01:00
parent d0079b5722
commit 38a47d9f7c

View file

@ -118,7 +118,7 @@ def main():
signal.signal(signal.SIGTERM, sigterm)
with open("ans.pid", "w") as pidfile:
with open("ans.pid", "w", encoding="utf-8") as pidfile:
print(os.getpid(), file=pidfile)
listenip = "10.53.0.6"