From: Štěpán Balážik Date: Tue, 27 Jan 2026 22:28:06 +0000 (+0100) Subject: Fix 'Using open without explicitly specifying an encoding' X-Git-Tag: v9.21.19~15^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38a47d9f7c9daba9c83e71ec8fc4ff8e90afd569;p=thirdparty%2Fbind9.git Fix 'Using open without explicitly specifying an encoding' In preparation for running pylint on more code. --- diff --git a/bin/tests/system/tcp/ans6/ans.py b/bin/tests/system/tcp/ans6/ans.py index a9df8b7df7d..1617f31ddcd 100644 --- a/bin/tests/system/tcp/ans6/ans.py +++ b/bin/tests/system/tcp/ans6/ans.py @@ -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"