Fix 'Using open without explicitly specifying an encoding'

In preparation for running pylint on more code.

(cherry picked from commit 38a47d9f7c)
This commit is contained in:
Štěpán Balážik 2026-01-27 23:28:06 +01:00
parent bfc561f224
commit cffa775a90

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"