]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix 'Using open without explicitly specifying an encoding'
authorŠtěpán Balážik <stepan@isc.org>
Tue, 27 Jan 2026 22:28:06 +0000 (23:28 +0100)
committerŠtěpán Balážik <stepan@isc.org>
Wed, 25 Feb 2026 12:15:05 +0000 (13:15 +0100)
In preparation for running pylint on more code.

(cherry picked from commit 38a47d9f7c9daba9c83e71ec8fc4ff8e90afd569)

bin/tests/system/tcp/ans6/ans.py

index a9df8b7df7dc8d41d9ad29915999659e00fa3461..1617f31ddcd9bb9eb55e14a5274c9cc2626b58ce 100644 (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"