]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove deprecated universal newlines flag to open(). v1.12.0-py3
authorBob Halley <halley@dnspython.org>
Mon, 1 Sep 2014 13:09:19 +0000 (06:09 -0700)
committerBob Halley <halley@dnspython.org>
Mon, 1 Sep 2014 13:09:19 +0000 (06:09 -0700)
dns/zone.py

index 9a8fc226829b4e722828d5e636e7cbc20f9fbfe2..ece898a4cf5fb104e2849cbb6d81e664ed3ba65a 100644 (file)
@@ -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: