mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 23:55:27 +00:00
3885. [port] Use 'open()' rather than 'file()' to open files in
python.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
3885. [port] Use 'open()' rather than 'file()' to open files in
|
||||||
|
python.
|
||||||
|
|
||||||
3884. [protocol] Add CDS and CDNSKEY record types. [RT #36333]
|
3884. [protocol] Add CDS and CDNSKEY record types. [RT #36333]
|
||||||
|
|
||||||
3883. [placeholder]
|
3883. [placeholder]
|
||||||
|
@@ -104,7 +104,7 @@ class Key:
|
|||||||
self.alg = int(alg)
|
self.alg = int(alg)
|
||||||
self.keyid = int(keyid)
|
self.keyid = int(keyid)
|
||||||
|
|
||||||
kfp = file(key_file, "r")
|
kfp = open(key_file, "r")
|
||||||
for line in kfp:
|
for line in kfp:
|
||||||
if line[0] == ';':
|
if line[0] == ';':
|
||||||
continue
|
continue
|
||||||
@@ -132,7 +132,7 @@ class Key:
|
|||||||
self.sep = False
|
self.sep = False
|
||||||
kfp.close()
|
kfp.close()
|
||||||
|
|
||||||
pfp = file(private_file, "rU")
|
pfp = open(private_file, "rU")
|
||||||
propDict = dict()
|
propDict = dict()
|
||||||
for propLine in pfp:
|
for propLine in pfp:
|
||||||
propDef = propLine.strip()
|
propDef = propLine.strip()
|
||||||
|
Reference in New Issue
Block a user