mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 10:39:59 -04:00
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:
parent
bfc561f224
commit
cffa775a90
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue