From bf59efcf0ed41186a5f9c1ca61da15a3c99b46f3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 23 Jun 2014 14:46:34 +1000 Subject: [PATCH] 3885. [port] Use 'open()' rather than 'file()' to open files in python. --- CHANGES | 3 +++ bin/python/dnssec-coverage.py.in | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 4d2185b793..4647c60eea 100644 --- 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] diff --git a/bin/python/dnssec-coverage.py.in b/bin/python/dnssec-coverage.py.in index 6aded9ae19..0f352c15a3 100755 --- a/bin/python/dnssec-coverage.py.in +++ b/bin/python/dnssec-coverage.py.in @@ -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()