From: Bob Halley Date: Wed, 21 Feb 2018 23:07:40 +0000 (-0800) Subject: the universal newlines fix was backwards X-Git-Tag: v1.16.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e499b4598e379511f8d38927c1b34a71abb128;p=thirdparty%2Fdnspython.git the universal newlines fix was backwards --- diff --git a/dns/zone.py b/dns/zone.py index 6606bef0..f06e4191 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -1022,9 +1022,9 @@ def from_file(f, origin=None, rdclass=dns.rdataclass.IN, str_type = string_types if PY3: - opts = 'rU' - else: opts = 'r' + else: + opts = 'rU' if isinstance(f, str_type): if filename is None: