From: Bob Halley Date: Mon, 1 Sep 2014 13:09:19 +0000 (-0700) Subject: Remove deprecated universal newlines flag to open(). X-Git-Tag: v1.12.0-py3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9597eefe62c1bcda08c1a89140248060a07c73c;p=thirdparty%2Fdnspython.git Remove deprecated universal newlines flag to open(). --- diff --git a/dns/zone.py b/dns/zone.py index 9a8fc226..ece898a4 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -965,7 +965,7 @@ def from_file(f, origin = None, rdclass = dns.rdataclass.IN, if isinstance(f, str): if filename is None: filename = f - f = open(f, 'rU') + f = open(f, 'r') want_close = True else: if filename is None: