]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3885. [port] Use 'open()' rather than 'file()' to open files in
authorMark Andrews <marka@isc.org>
Mon, 23 Jun 2014 04:46:34 +0000 (14:46 +1000)
committerMark Andrews <marka@isc.org>
Mon, 23 Jun 2014 04:46:34 +0000 (14:46 +1000)
                        python.

CHANGES
bin/python/dnssec-coverage.py.in

diff --git a/CHANGES b/CHANGES
index 4d2185b793514e78f6c61b958de2688d11ad6c7e..4647c60eea0bf439a4a435e6e6968c6c1cc861c5 100644 (file)
--- a/CHANGES
+++ b/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]
 
 3883.  [placeholder]
index 6aded9ae1916d57b546369d352c698fe2a647126..0f352c15a34ea7b79581aaaed43ca61f8a9e95c5 100755 (executable)
@@ -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()