From 99e499b4598e379511f8d38927c1b34a71abb128 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 21 Feb 2018 15:07:40 -0800 Subject: [PATCH] the universal newlines fix was backwards --- dns/zone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.3