mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 18:30:05 -04:00
3885. [port] Use 'open()' rather than 'file()' to open files in
python.
(cherry picked from commit bf59efcf0e)
This commit is contained in:
parent
0fc6ea9032
commit
cc152ad50f
2 changed files with 5 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,5 +1,8 @@
|
|||
--- 9.10.1b1 released ---
|
||||
|
||||
3885. [port] Use 'open()' rather than 'file()' to open files in
|
||||
python.
|
||||
|
||||
3884. [protocol] Add CDS and CDNSKEY record types. [RT #36333]
|
||||
|
||||
3881. [bug] Address memory leak with UPDATE error handling.
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class Key:
|
|||
self.alg = int(alg)
|
||||
self.keyid = int(keyid)
|
||||
|
||||
kfp = file(key_file, "r")
|
||||
kfp = open(key_file, "r")
|
||||
for line in kfp:
|
||||
if line[0] == ';':
|
||||
continue
|
||||
|
|
@ -132,7 +132,7 @@ class Key:
|
|||
self.sep = False
|
||||
kfp.close()
|
||||
|
||||
pfp = file(private_file, "rU")
|
||||
pfp = open(private_file, "rU")
|
||||
propDict = dict()
|
||||
for propLine in pfp:
|
||||
propDef = propLine.strip()
|
||||
|
|
|
|||
Loading…
Reference in a new issue