]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
the universal newlines fix was backwards
authorBob Halley <halley@dnspython.org>
Wed, 21 Feb 2018 23:07:40 +0000 (15:07 -0800)
committerBob Halley <halley@dnspython.org>
Wed, 21 Feb 2018 23:07:40 +0000 (15:07 -0800)
dns/zone.py

index 6606bef0e314d7a7064d530113fb1aa0d6de41bf..f06e4191312e4c5284eaaca8c651f0b6292d8242 100644 (file)
@@ -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: