]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove "from __future__ import" statements. 460/head
authorBrian Wellington <bwelling@xbill.org>
Fri, 1 May 2020 18:31:23 +0000 (11:31 -0700)
committerBrian Wellington <bwelling@xbill.org>
Fri, 1 May 2020 18:31:23 +0000 (11:31 -0700)
None of these are needed anymore.

18 files changed:
dns/edns.py
dns/message.py
dns/query.py
dns/rdtypes/ANY/LOC.py
dns/zone.py
examples/e164.py
examples/mx.py
examples/name.py
examples/query_specific.py
examples/receive_notify.py
examples/reverse.py
examples/reverse_name.py
examples/xfr.py
examples/zonediff.py
tests/test_dnssec.py
tests/test_edns.py
tests/test_name.py
tests/test_ntoaaton.py

index e8460093927fce368a96a849ce7cf05b762bbf47..b501590dc08d99c419bbcad35386e5f9383e37cc 100644 (file)
@@ -17,8 +17,6 @@
 
 """EDNS Options"""
 
-from __future__ import absolute_import
-
 import math
 import struct
 
index 1c8f2dd7ce5a7831613ed5bd251d62933dd48ab4..ee9fc84afd0df99566ab293081cd18da5e42354d 100644 (file)
@@ -17,8 +17,6 @@
 
 """DNS Messages"""
 
-from __future__ import absolute_import
-
 from io import StringIO
 import struct
 import time
index 725eff19627a101b429baff76018073f33327dd6..779b1d85628d3b2234d4051b4131cf06e4c28acd 100644 (file)
@@ -17,8 +17,6 @@
 
 """Talk to a DNS server."""
 
-from __future__ import generators
-
 import errno
 import os
 import select
index fc02dfdd40aeafec2530b2b79c36d80fb56c671e..375de62bdbbfce98b38258f17bf1f33568170b3a 100644 (file)
@@ -15,8 +15,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from __future__ import division
-
 import struct
 
 import dns.exception
index f97d18d48bee545ce0c39508d9618021d9bb4f21..556fda0569d1d934d2831655ab7737376777dec9 100644 (file)
@@ -17,8 +17,6 @@
 
 """DNS Zones."""
 
-from __future__ import generators
-
 import sys
 import re
 import os
index dd56baf59510f388fdfbed135c9045a99b32e23f..497fd680e43023c21e894f4738a00aea2b1d2b2b 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/env python
 
-from __future__ import print_function
-
 import dns.e164
 n = dns.e164.from_e164("+1 555 1212")
 print(n)
index 99f494e0ba63d770ad42d52b143ac3949de70ce8..a4bad708c3a548e5a1433324a8b5f8b9826c2c3e 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/env python
 
-from __future__ import print_function
-
 import dns.resolver
 
 answers = dns.resolver.query('nominum.com', 'MX')
index 7bb0c0106607001252546bf38e1d3ad8fbe4b227..40d0c562550b6354a749fb6906ef1f0c35863b38 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/env python
 
-from __future__ import print_function
-
 import dns.name
 
 n = dns.name.from_text('www.dnspython.org')
index 3e2c4198a65a062a10b8abd9c6a5e6f9760d9708..23eff30d62e2b4ec3e9308d14bd8789c31aa7bcc 100644 (file)
@@ -2,8 +2,6 @@
 
 # Two ways of querying a specific nameserver.
 
-from __future__ import print_function
-
 import dns.message
 import dns.rdataclass
 import dns.rdatatype
index 960e4cab7325f770757e75a32c3d01c7d35e5a1c..c41b336390b2ca1ce05f6a2176dd069f4537111d 100644 (file)
@@ -3,8 +3,6 @@
 # This is just a toy, real code would check that the received message
 # really was a NOTIFY, and otherwise handle errors.
 
-from __future__ import print_function
-
 import socket
 
 import dns.flags
index 038a0201b0b55264d395dce4f90946339662ea59..a0293eebee7505c079ea9cedee8881368b8ce313 100755 (executable)
@@ -16,8 +16,6 @@
 # If this weren't a demo script, there'd be a way of specifying the
 # origin for each zone instead of constructing it from the filename.
 
-from __future__ import print_function
-
 import dns.zone
 import dns.ipv4
 import os.path
index f2540a14ec7e8eb3ce36e29705e68b15af217c72..a87fe344883a90d469c25f55bab5bb0deb066477 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/env python
 
-from __future__ import print_function
-
 import dns.reversename
 n = dns.reversename.from_address("127.0.0.1")
 print(n)
index ec24b42d7232d8c7a00c5b9ffc2cf97af5ee13be..c09aa3589886fd2c21a0642a09743e3b53c00287 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/env python
 
-from __future__ import print_function
-
 import dns.query
 import dns.resolver
 import dns.zone
index b65f82824f15721adf494706a4c4f8b192836b9f..112df40924018809d0237169cec86c99cedfd38d 100755 (executable)
@@ -21,7 +21,6 @@
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 """See diff_zones.__doc__ for more information"""
 
-from __future__ import print_function
 from typing import cast, Union, Any # pylint: disable=unused-import
 
 __all__ = ['diff_zones', 'format_changes_plain', 'format_changes_html']
index f2a060f8c8031e23d2a24b2d141955b7716589f8..f38637d8a0f4a9bad66254749091cf21568822eb 100644 (file)
@@ -15,8 +15,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from __future__ import print_function
-
 import unittest
 
 import dns.dnssec
index 66ea3347af1bfc04e9bd3e4b1c2e0e18b0f410d5..93839473e68d20f88e9fe665b8ef774116b326b4 100644 (file)
@@ -16,8 +16,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from __future__ import print_function
-
 import unittest
 
 from io import BytesIO
index 47cea18777a363abbe37c7e0680f0b35f4cf305d..1e6c6ab438c576a2a25c25f955a435046f614b9e 100644 (file)
@@ -16,8 +16,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from __future__ import print_function
-
 from typing import Dict # pylint: disable=unused-import
 import unittest
 
index 1b2c476b061d9ab243f064fd8daae6529e3fee15..2da0da6cc69fde0af7f0e4efb1a78a2c025979fc 100644 (file)
@@ -15,8 +15,6 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from __future__ import print_function
-
 import unittest
 import binascii