]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
use isort
authorBob Halley <halley@dnspython.org>
Sun, 25 Jun 2023 21:18:10 +0000 (14:18 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 25 Jun 2023 21:18:10 +0000 (14:18 -0700)
94 files changed:
dns/_asyncio_backend.py
dns/_ddr.py
dns/_immutable_ctx.py
dns/_trio_backend.py
dns/asyncbackend.py
dns/asyncquery.py
dns/asyncresolver.py
dns/dnssec.py
dns/dnssecalgs/__init__.py
dns/edns.py
dns/entropy.py
dns/enum.py
dns/flags.py
dns/immutable.py
dns/inet.py
dns/ipv4.py
dns/ipv6.py
dns/message.py
dns/name.py
dns/nameserver.py
dns/node.py
dns/query.py
dns/quic/__init__.py
dns/quic/_asyncio.py
dns/quic/_common.py
dns/quic/_sync.py
dns/quic/_trio.py
dns/rdata.py
dns/rdataset.py
dns/rdtypes/ANY/AFSDB.py
dns/rdtypes/ANY/AVC.py
dns/rdtypes/ANY/CDNSKEY.py
dns/rdtypes/ANY/CDS.py
dns/rdtypes/ANY/CERT.py
dns/rdtypes/ANY/CNAME.py
dns/rdtypes/ANY/CSYNC.py
dns/rdtypes/ANY/DLV.py
dns/rdtypes/ANY/DNAME.py
dns/rdtypes/ANY/DNSKEY.py
dns/rdtypes/ANY/DS.py
dns/rdtypes/ANY/EUI48.py
dns/rdtypes/ANY/EUI64.py
dns/rdtypes/ANY/HIP.py
dns/rdtypes/ANY/LOC.py
dns/rdtypes/ANY/MX.py
dns/rdtypes/ANY/NINFO.py
dns/rdtypes/ANY/NS.py
dns/rdtypes/ANY/NSEC.py
dns/rdtypes/ANY/NSEC3.py
dns/rdtypes/ANY/NSEC3PARAM.py
dns/rdtypes/ANY/OPT.py
dns/rdtypes/ANY/PTR.py
dns/rdtypes/ANY/RP.py
dns/rdtypes/ANY/RRSIG.py
dns/rdtypes/ANY/RT.py
dns/rdtypes/ANY/SOA.py
dns/rdtypes/ANY/SPF.py
dns/rdtypes/ANY/SSHFP.py
dns/rdtypes/ANY/TKEY.py
dns/rdtypes/ANY/TXT.py
dns/rdtypes/ANY/URI.py
dns/rdtypes/ANY/ZONEMD.py
dns/rdtypes/CH/A.py
dns/rdtypes/IN/HTTPS.py
dns/rdtypes/IN/IPSECKEY.py
dns/rdtypes/IN/KX.py
dns/rdtypes/IN/NSAP_PTR.py
dns/rdtypes/IN/PX.py
dns/rdtypes/IN/SRV.py
dns/rdtypes/IN/SVCB.py
dns/rdtypes/IN/WKS.py
dns/rdtypes/dnskeybase.py
dns/rdtypes/dsbase.py
dns/rdtypes/euibase.py
dns/rdtypes/mxbase.py
dns/rdtypes/nsbase.py
dns/rdtypes/tlsabase.py
dns/rdtypes/txtbase.py
dns/renderer.py
dns/resolver.py
dns/reversename.py
dns/rrset.py
dns/tokenizer.py
dns/transaction.py
dns/tsig.py
dns/tsigkeyring.py
dns/update.py
dns/versioned.py
dns/win32util.py
dns/wire.py
dns/xfr.py
dns/zone.py
dns/zonefile.py
pyproject.toml

index 0f16370317e9b7072c9d744c573113ec56b18181..e55b73a95029cd10558a1082c6d9fc3556394bd9 100644 (file)
@@ -2,14 +2,13 @@
 
 """asyncio library query support"""
 
-import socket
 import asyncio
+import socket
 import sys
 
 import dns._asyncbackend
 import dns.exception
 
-
 _is_win32 = sys.platform == "win32"
 
 
@@ -121,13 +120,12 @@ class StreamSocket(dns._asyncbackend.StreamSocket):
 
 try:
     import anyio
-    import httpx
-
     import httpcore
-    import httpcore.backends.base
     import httpcore.backends.asyncio
+    import httpcore.backends.base
+    import httpx
 
-    from dns.query import _compute_times, _remaining, _expiration_for_this_attempt
+    from dns.query import _compute_times, _expiration_for_this_attempt, _remaining
 
     class _NetworkBackend(httpcore.backends.base.AsyncNetworkBackend):
         def __init__(self, resolver, local_port, bootstrap_address, family):
index c212489d7eef0feeca6d84e4d3c72174915cdd65..bf5c11eb6d98168766c5df3b2201e298388fa49e 100644 (file)
@@ -2,9 +2,9 @@
 #
 # Support for Discovery of Designated Resolvers
 
-from urllib.parse import urlparse
 import socket
 import time
+from urllib.parse import urlparse
 
 import dns.asyncbackend
 import dns.inet
@@ -13,7 +13,6 @@ import dns.nameserver
 import dns.query
 import dns.rdtypes.svcbbase
 
-
 # The special name of the local resolver when using DDR
 _local_resolver_name = dns.name.from_text("_dns.resolver.arpa")
 
index 63c0a2d3124c36cf5d3d7020a69a4dd17c4a54ed..ae7a33bf3a5f92252a5191b23086fd62e431e785 100644 (file)
@@ -7,7 +7,6 @@
 import contextvars
 import inspect
 
-
 _in__init__ = contextvars.ContextVar("_immutable_in__init__", default=False)
 
 
index ff5da9eb12d378831ea468c0901f7a8f4d9bf9b4..81544832637a1999d2de909f9abf625af20fb3f9 100644 (file)
@@ -3,6 +3,7 @@
 """trio async I/O library query support"""
 
 import socket
+
 import trio
 import trio.socket  # type: ignore
 
@@ -95,13 +96,12 @@ class StreamSocket(dns._asyncbackend.StreamSocket):
 
 
 try:
-    import httpx
-
     import httpcore
     import httpcore.backends.base
     import httpcore.backends.trio
+    import httpx
 
-    from dns.query import _compute_times, _remaining, _expiration_for_this_attempt
+    from dns.query import _compute_times, _expiration_for_this_attempt, _remaining
 
     class _NetworkBackend(httpcore.backends.base.AsyncNetworkBackend):
         def __init__(self, resolver, local_port, bootstrap_address, family):
index b6d3211d226d6b4fed803f9235e7c4c23cb24408..07d50e1ee92ad6d987e20f8cb3cd405e02385c02 100644 (file)
@@ -5,13 +5,12 @@ from typing import Dict
 import dns.exception
 
 # pylint: disable=unused-import
-
-from dns._asyncbackend import (
-    Socket,
+from dns._asyncbackend import (  # noqa: F401  lgtm[py/unused-import]
+    Backend,
     DatagramSocket,
+    Socket,
     StreamSocket,
-    Backend,
-)  # noqa: F401  lgtm[py/unused-import]
+)
 
 # pylint: enable=unused-import
 
index 97afa0b35ac66bd6667596a24fa738f34a0cb830..54093c17a0b0f97661caae588445ba1b52a740c8 100644 (file)
 
 """Talk to a DNS server."""
 
-from typing import Any, Dict, Optional, Tuple, Union
-
 import base64
 import contextlib
 import socket
 import struct
 import time
+from typing import Any, Dict, Optional, Tuple, Union
 
 import dns.asyncbackend
 import dns.exception
 import dns.inet
-import dns.name
 import dns.message
+import dns.name
 import dns.quic
 import dns.rcode
 import dns.rdataclass
 import dns.rdatatype
 import dns.transaction
-
 from dns._asyncbackend import NullContext
 from dns.query import (
-    _compute_times,
-    _matches_destination,
     BadResponse,
-    ssl,
-    UDPMode,
-    have_doh,
-    _have_http2,
     NoDOH,
     NoDOQ,
+    UDPMode,
+    _compute_times,
+    _have_http2,
+    _matches_destination,
+    have_doh,
+    ssl,
 )
 
 if have_doh:
index 1c84365afc2b55ecb5cb7c515f3767180c79c2a5..8f5e062a9ee5c1bf19acf363da7344b8d393e32a 100644 (file)
 
 """Asynchronous DNS stub resolver."""
 
-from typing import Any, Dict, List, Optional, Union
-
 import socket
 import time
+from typing import Any, Dict, List, Optional, Union
 
+import dns._ddr
 import dns.asyncbackend
 import dns.asyncquery
-import dns._ddr
 import dns.exception
 import dns.name
 import dns.query
@@ -33,8 +32,7 @@ import dns.rdatatype
 import dns.resolver  # lgtm[py/import-and-import-from]
 
 # import some resolver symbols for brevity
-from dns.resolver import NXDOMAIN, NoAnswer, NotAbsolute, NoRootSOA
-
+from dns.resolver import NXDOMAIN, NoAnswer, NoRootSOA, NotAbsolute
 
 # for indentation purposes below
 _udp = dns.asyncquery.udp
index d9b8d98d7358240cf63bbcadad3f60f4e9b21a65..24a4b87d77d9e471c10d243537ceec8f824c7935 100644 (file)
 """Common DNSSEC-related functions and constants."""
 
 
-from typing import cast, Callable, Dict, List, Optional, Set, Tuple, Union
-
+import base64
 import contextlib
 import functools
 import hashlib
 import struct
 import time
-import base64
 from datetime import datetime
-
-from dns.dnssectypes import Algorithm, DSDigest, NSEC3Hash
+from typing import Callable, Dict, List, Optional, Set, Tuple, Union, cast
 
 import dns.exception
 import dns.name
 import dns.node
-import dns.rdataset
 import dns.rdata
-import dns.rdatatype
 import dns.rdataclass
+import dns.rdataset
+import dns.rdatatype
 import dns.rrset
 import dns.transaction
 import dns.zone
+from dns.dnssectypes import Algorithm, DSDigest, NSEC3Hash
 from dns.exception import (  # pylint: disable=W0611
     AlgorithmKeyMismatch,
     DeniedByPolicy,
@@ -55,7 +53,6 @@ from dns.rdtypes.ANY.NSEC3PARAM import NSEC3PARAM
 from dns.rdtypes.ANY.RRSIG import RRSIG, sigtime_to_posixtime
 from dns.rdtypes.dnskeybase import Flag
 
-
 PublicKey = Union[
     "GenericPublicKey",
     "rsa.RSAPublicKey",
@@ -1173,11 +1170,12 @@ try:
     from cryptography.exceptions import InvalidSignature
     from cryptography.hazmat.primitives.asymmetric import dsa  # pylint: disable=W0611
     from cryptography.hazmat.primitives.asymmetric import ec  # pylint: disable=W0611
+    from cryptography.hazmat.primitives.asymmetric import ed448  # pylint: disable=W0611
+    from cryptography.hazmat.primitives.asymmetric import rsa  # pylint: disable=W0611
     from cryptography.hazmat.primitives.asymmetric import (  # pylint: disable=W0611
         ed25519,
     )
-    from cryptography.hazmat.primitives.asymmetric import ed448  # pylint: disable=W0611
-    from cryptography.hazmat.primitives.asymmetric import rsa  # pylint: disable=W0611
+
     from dns.dnssecalgs import (  # pylint: disable=C0412
         get_algorithm_cls,
         get_algorithm_cls_from_dnskey,
index d4c89cd65beb52417f2eeaa72e7d33a2d3cf6a1b..0c48c89ef34257c86fecab8b42093222f8169972 100644 (file)
@@ -16,7 +16,6 @@ from dns.dnssectypes import Algorithm
 from dns.exception import UnsupportedAlgorithm
 from dns.rdtypes.ANY.DNSKEY import DNSKEY
 
-
 AlgorithmPrefix = Optional[Union[bytes, dns.name.Name]]
 
 algorithms: Dict[Tuple[Algorithm, AlgorithmPrefix], Type[GenericPrivateKey]] = {
index 40899ee83b39b7c3009b79e361d514db9865dc18..f05baac4573c7fd857a865e0fa61aad283de8a75 100644 (file)
 
 """EDNS Options"""
 
-from typing import Any, Dict, Optional, Union
-
 import math
 import socket
 import struct
+from typing import Any, Dict, Optional, Union
 
 import dns.enum
 import dns.inet
index 36168181527e347ff8ebf2c607c090877c2f6418..4dcdc6272ca3a670b1616f4c95f2a18b1803bc82 100644 (file)
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from typing import Any, Optional
-
-import os
 import hashlib
+import os
 import random
 import threading
 import time
+from typing import Any, Optional
 
 
 class EntropyPool:
index 21cab15a824b879533d4d8a29dfa35a86992a1d6..71461f1776f3990311f656cb37f6aab68e0b9f71 100644 (file)
@@ -15,9 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from typing import Type, TypeVar, Union
-
 import enum
+from typing import Type, TypeVar, Union
 
 TIntEnum = TypeVar("TIntEnum", bound="IntEnum")
 
index b21b8e3bbca4b97b46ad5276a29ed047e1635682..4c60be1330b789a9a727fd943a59b44c9b8b8107 100644 (file)
@@ -17,9 +17,8 @@
 
 """DNS Message Flags."""
 
-from typing import Any
-
 import enum
+from typing import Any
 
 # Standard DNS flags
 
index 38fbe59721e23c78f00cc509b14349cd4531d8e5..cab8d6fb5a03164734bf5af4f97ad45b81c0a9fb 100644 (file)
@@ -1,8 +1,7 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
-from typing import Any
-
 import collections.abc
+from typing import Any
 
 from dns._immutable_ctx import immutable
 
index 23a4a86e2c3bd8da80b3e55c4ef8276cb6c94d6a..02e925c6bf89f76ba9a8c0b10abfb97a32382c74 100644 (file)
 
 """Generic Internet address helper functions."""
 
-from typing import Any, Optional, Tuple
-
 import socket
+from typing import Any, Optional, Tuple
 
 import dns.ipv4
 import dns.ipv6
 
-
 # We assume that AF_INET and AF_INET6 are always defined.  We keep
 # these here for the benefit of any old code (unlikely though that
 # is!).
index b8e148f3d4167ba06aef85155eb6643beadf8e9b..f549150a901356c4907efba97181ee385f1eebfc 100644 (file)
@@ -17,9 +17,8 @@
 
 """IPv4 helper functions."""
 
-from typing import Union
-
 import struct
+from typing import Union
 
 import dns.exception
 
index fbd49623774d50c7051f5b6b89ed744a8fd7f07c..0cc3d868f567a31f0089009f71320c9acf81fbd5 100644 (file)
 
 """IPv6 helper functions."""
 
-from typing import List, Union
-
-import re
 import binascii
+import re
+from typing import List, Union
 
 import dns.exception
 import dns.ipv4
index 13600e41b7f3d724bea2c538348a3be329bf4b6c..daae6363a9bd042db2c13609b02894e0e6f7b3c4 100644 (file)
 
 """DNS Messages"""
 
-from typing import Any, Dict, List, Optional, Tuple, Union
-
 import contextlib
 import io
 import time
+from typing import Any, Dict, List, Optional, Tuple, Union
 
-import dns.wire
 import dns.edns
+import dns.entropy
 import dns.enum
 import dns.exception
 import dns.flags
 import dns.name
 import dns.opcode
-import dns.entropy
 import dns.rcode
 import dns.rdata
 import dns.rdataclass
 import dns.rdatatype
-import dns.rrset
-import dns.renderer
-import dns.ttl
-import dns.tsig
 import dns.rdtypes.ANY.OPT
 import dns.rdtypes.ANY.TSIG
+import dns.renderer
+import dns.rrset
+import dns.tsig
+import dns.ttl
+import dns.wire
 
 
 class ShortHeader(dns.exception.FormError):
index 612af0214f23732e74be03f9d4febde64e5d8035..f452bfed7f636724dc551a7c323ca400a1f4e2b7 100644 (file)
 """DNS Names.
 """
 
-from typing import Any, Dict, Iterable, Optional, Tuple, Union
-
 import copy
-import struct
-
 import encodings.idna  # type: ignore
+import struct
+from typing import Any, Dict, Iterable, Optional, Tuple, Union
 
 try:
     import idna  # type: ignore
@@ -33,10 +31,9 @@ except ImportError:  # pragma: no cover
     have_idna_2008 = False
 
 import dns.enum
-import dns.wire
 import dns.exception
 import dns.immutable
-
+import dns.wire
 
 CompressType = Dict["Name", int]
 
index b0824657cf23f643d879820c33aa5de969906e30..5910139ed4d800773689f3de000e1480cf3eff54 100644 (file)
@@ -1,6 +1,5 @@
-from urllib.parse import urlparse
-
 from typing import Optional, Union
+from urllib.parse import urlparse
 
 import dns.asyncbackend
 import dns.asyncquery
index 22bbe7cb72972d0ac5868a7941d5b26a7718d3d3..c670243c527a9aa3da4e33e1ef7185658c3f8d52 100644 (file)
 
 """DNS nodes.  A node is a set of rdatasets."""
 
-from typing import Any, Dict, Optional
-
 import enum
 import io
+from typing import Any, Dict, Optional
 
 import dns.immutable
 import dns.name
 import dns.rdataclass
 import dns.rdataset
 import dns.rdatatype
-import dns.rrset
 import dns.renderer
-
+import dns.rrset
 
 _cname_types = {
     dns.rdatatype.CNAME,
index c6b05610a2b35b97e894034b696c272ea510a7dc..55476c17ea848afa0f28cdf73d2da045cdbe8a98 100644 (file)
@@ -17,8 +17,6 @@
 
 """Talk to a DNS server."""
 
-from typing import Any, Dict, Optional, Tuple, Union
-
 import base64
 import contextlib
 import enum
@@ -28,11 +26,12 @@ import selectors
 import socket
 import struct
 import time
+from typing import Any, Dict, Optional, Tuple, Union
 
 import dns.exception
 import dns.inet
-import dns.name
 import dns.message
+import dns.name
 import dns.quic
 import dns.rcode
 import dns.rdataclass
index f48ecf57e664f79640f152c311d74944c6a505e7..69813f9f18cc28eac706225187fb93c342aed95b 100644 (file)
@@ -5,13 +5,13 @@ try:
 
     import dns.asyncbackend
     from dns._asyncbackend import NullContext
-    from dns.quic._sync import SyncQuicManager, SyncQuicConnection, SyncQuicStream
     from dns.quic._asyncio import (
-        AsyncioQuicManager,
         AsyncioQuicConnection,
+        AsyncioQuicManager,
         AsyncioQuicStream,
     )
     from dns.quic._common import AsyncQuicConnection, AsyncQuicManager
+    from dns.quic._sync import SyncQuicConnection, SyncQuicManager, SyncQuicStream
 
     have_quic = True
 
@@ -33,9 +33,10 @@ try:
 
     try:
         import trio
+
         from dns.quic._trio import (  # pylint: disable=ungrouped-imports
-            TrioQuicManager,
             TrioQuicConnection,
+            TrioQuicManager,
             TrioQuicStream,
         )
 
index 69d884c1cccc4db2f7466f3fbc5f8bf70df5bfe4..b6be228f64dd6d07fc6cb2b89cb108d83e9c70a8 100644 (file)
@@ -9,14 +9,14 @@ import time
 import aioquic.quic.configuration  # type: ignore
 import aioquic.quic.connection  # type: ignore
 import aioquic.quic.events  # type: ignore
-import dns.inet
-import dns.asyncbackend
 
+import dns.asyncbackend
+import dns.inet
 from dns.quic._common import (
-    BaseQuicStream,
+    QUIC_MAX_DATAGRAM,
     AsyncQuicConnection,
     AsyncQuicManager,
-    QUIC_MAX_DATAGRAM,
+    BaseQuicStream,
     UnexpectedEOF,
 )
 
index 442b3820a23f99fe6361f917338178a87a228301..b9717be374ebed7c6262677655d88e7c2453950e 100644 (file)
@@ -3,13 +3,12 @@
 import socket
 import struct
 import time
-
 from typing import Any
 
 import aioquic.quic.configuration  # type: ignore
 import aioquic.quic.connection  # type: ignore
-import dns.inet
 
+import dns.inet
 
 QUIC_MAX_DATAGRAM = 2048
 
index bc9f172c1d870068994f1e072b24fef7574e48f5..5d7df5716ce5853a7076a162bfa8e01f784c3f3b 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
+import selectors
 import socket
 import ssl
-import selectors
 import struct
 import threading
 import time
@@ -10,13 +10,13 @@ import time
 import aioquic.quic.configuration  # type: ignore
 import aioquic.quic.connection  # type: ignore
 import aioquic.quic.events  # type: ignore
-import dns.inet
 
+import dns.inet
 from dns.quic._common import (
-    BaseQuicStream,
+    QUIC_MAX_DATAGRAM,
     BaseQuicConnection,
     BaseQuicManager,
-    QUIC_MAX_DATAGRAM,
+    BaseQuicStream,
     UnexpectedEOF,
 )
 
index 38eab3e967a2a07666b5e5ae9ffe6aaea2260f46..db73a902de6ae12676021aa51bba6e77395eee29 100644 (file)
@@ -13,10 +13,10 @@ import trio
 import dns.inet
 from dns._asyncbackend import NullContext
 from dns.quic._common import (
-    BaseQuicStream,
+    QUIC_MAX_DATAGRAM,
     AsyncQuicConnection,
     AsyncQuicManager,
-    QUIC_MAX_DATAGRAM,
+    BaseQuicStream,
     UnexpectedEOF,
 )
 
index f0b340c7348518ac22fd312a3eae3b7c98d376fe..0d262e8d85b362a29ee4e34416afeb5108b0da45 100644 (file)
 
 """DNS rdata."""
 
-from typing import Any, Dict, Optional, Tuple, Union
-
-from importlib import import_module
 import base64
 import binascii
-import io
 import inspect
+import io
 import itertools
 import random
+from importlib import import_module
+from typing import Any, Dict, Optional, Tuple, Union
 
-import dns.wire
 import dns.exception
 import dns.immutable
 import dns.ipv4
@@ -37,6 +35,7 @@ import dns.rdataclass
 import dns.rdatatype
 import dns.tokenizer
 import dns.ttl
+import dns.wire
 
 _chunksize = 32
 
index b562d1f8a7a8738a99cbfc309efe5982e21f16db..31124afcc46f013cdaa8ac1bebda62813dab6b14 100644 (file)
 
 """DNS rdatasets (an rdataset is a set of rdatas of a given type and class)"""
 
-from typing import Any, cast, Collection, Dict, List, Optional, Union
-
 import io
 import random
 import struct
+from typing import Any, Collection, Dict, List, Optional, Union, cast
 
 import dns.exception
 import dns.immutable
 import dns.name
-import dns.rdatatype
-import dns.rdataclass
 import dns.rdata
+import dns.rdataclass
+import dns.rdatatype
 import dns.set
 import dns.ttl
 
index d7838e7e76347b4a7ef82b2b1e71449c5e4798e7..3d287f6e02e57731db9884eb26441774da8cde06 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.mxbase
 import dns.immutable
+import dns.rdtypes.mxbase
 
 
 @dns.immutable.immutable
index 11e026d08ff1d53d26da524ffa30d258e57e35e9..766d5e2d7edd74d5d7effe16bc9c6c458c0a83ce 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.txtbase
 import dns.immutable
+import dns.rdtypes.txtbase
 
 
 @dns.immutable.immutable
index 869523fb17b64638adc2aeedcf28b126925a614a..38b8a8da1497c3519a538fb29bb139aa7faaf0bc 100644 (file)
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.dnskeybase  # lgtm[py/import-and-import-from]
 import dns.immutable
+import dns.rdtypes.dnskeybase  # lgtm[py/import-and-import-from]
 
 # pylint: disable=unused-import
-from dns.rdtypes.dnskeybase import (
-    SEP,
+from dns.rdtypes.dnskeybase import (  # noqa: F401  lgtm[py/unused-import]
     REVOKE,
+    SEP,
     ZONE,
-)  # noqa: F401  lgtm[py/unused-import]
+)
 
 # pylint: enable=unused-import
 
index 094de12bfde888af4e618d47973a53a0b8082f07..2ff42d9a1a2774dc0c1a629d8dbad4902258ad45 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.dsbase
 import dns.immutable
+import dns.rdtypes.dsbase
 
 
 @dns.immutable.immutable
index 1b0cbecad84c9729b24c3c158ffa8938586c6dc4..30fe863f4fa9cf8af21ffb780b749138668bbc42 100644 (file)
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import base64
+import struct
 
+import dns.dnssectypes
 import dns.exception
 import dns.immutable
-import dns.dnssectypes
 import dns.rdata
 import dns.tokenizer
 
index a4fcfa8880dc86186defcdb3ed5084b95beb8c65..759adb906d28f4e091b1d3d3576189f2c7b0033e 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.nsbase
 import dns.immutable
+import dns.rdtypes.nsbase
 
 
 @dns.immutable.immutable
index f819c08c4d4a97005cc1913cab0dadfc2d6afb06..315da9ffc77ce493e413b9faa3329f602383f508 100644 (file)
@@ -19,9 +19,9 @@ import struct
 
 import dns.exception
 import dns.immutable
+import dns.name
 import dns.rdata
 import dns.rdatatype
-import dns.name
 import dns.rdtypes.util
 
 
index 947dc42e140be50a62dc4f47d75caf68916bb5e1..632e90f8d38a7fb2fef5e069b04dca6ef1f9df64 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.dsbase
 import dns.immutable
+import dns.rdtypes.dsbase
 
 
 @dns.immutable.immutable
index f4984b55587303536d0e3df78f3e7f760158cba1..556bff59e3de793c9321415897bad4a321e321d8 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.nsbase
 import dns.immutable
+import dns.rdtypes.nsbase
 
 
 @dns.immutable.immutable
index 50fa05b75e723d141e7717ca03676ebbf37cde77..f1a63062f3b84d578af8e704bf43190dbb056424 100644 (file)
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.dnskeybase  # lgtm[py/import-and-import-from]
 import dns.immutable
+import dns.rdtypes.dnskeybase  # lgtm[py/import-and-import-from]
 
 # pylint: disable=unused-import
-from dns.rdtypes.dnskeybase import (
-    SEP,
+from dns.rdtypes.dnskeybase import (  # noqa: F401  lgtm[py/unused-import]
     REVOKE,
+    SEP,
     ZONE,
-)  # noqa: F401  lgtm[py/unused-import]
+)
 
 # pylint: enable=unused-import
 
index 3f6c3ee8be12e2aae7b7de536b35a2be464d7d8e..097ecfa0e1a3a375765aba427fd288448b692c44 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.dsbase
 import dns.immutable
+import dns.rdtypes.dsbase
 
 
 @dns.immutable.immutable
index 0ab88ad0f8c720e44f1779d896d13642d5136002..7e4e1ff3fcf4102854c14afde6e768f41ff6f559 100644 (file)
@@ -16,8 +16,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.euibase
 import dns.immutable
+import dns.rdtypes.euibase
 
 
 @dns.immutable.immutable
index c42957efe940e335beed4c537970f955a5eec86e..68b5820f4fc02caa98f860ca44ebd8775275605c 100644 (file)
@@ -16,8 +16,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.euibase
 import dns.immutable
+import dns.rdtypes.euibase
 
 
 @dns.immutable.immutable
index 01fec822a27a12289f1783da592e82758a87fd70..a20aa1e515303bf7fcbc13148322b4cde9ff312d 100644 (file)
@@ -15,9 +15,9 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import base64
 import binascii
+import struct
 
 import dns.exception
 import dns.immutable
index 028375de30e1e64f8de7e4495e59722f22686dc0..783d54af84c292400481f1cebbdcd6e187ca8bcb 100644 (file)
@@ -21,7 +21,6 @@ import dns.exception
 import dns.immutable
 import dns.rdata
 
-
 _pows = tuple(10**i for i in range(0, 11))
 
 # default values are in centimeters
index a697ea4554f0ff68b12d7e7ce4c048307d8a2f79..1f9df21f15e2ea3d971f385fdb42f6bd961a0091 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.mxbase
 import dns.immutable
+import dns.rdtypes.mxbase
 
 
 @dns.immutable.immutable
index d53e96765d90361d39d1bf8f892f85b82d6a7c64..55bc56149d04080c8fd7f46857f2439533dbe2d9 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.txtbase
 import dns.immutable
+import dns.rdtypes.txtbase
 
 
 @dns.immutable.immutable
index a0cc232a143bb58c424b25dae729abeb751521ca..fe453f0d7df241523eede96f4386c5e40ab09733 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.nsbase
 import dns.immutable
+import dns.rdtypes.nsbase
 
 
 @dns.immutable.immutable
index 7af7b77fcee57617f6899a8ad8463871433ae7b0..a2d98fa7ca9832bd0ae88e167a5ac3b76227041f 100644 (file)
@@ -17,9 +17,9 @@
 
 import dns.exception
 import dns.immutable
+import dns.name
 import dns.rdata
 import dns.rdatatype
-import dns.name
 import dns.rdtypes.util
 
 
index fe4e71cb2a54c33ecb659797f560096590a8d0e3..d32fe169fe92dd5b2869e6edb2e3864a1eb09b53 100644 (file)
@@ -25,7 +25,6 @@ import dns.rdata
 import dns.rdatatype
 import dns.rdtypes.util
 
-
 b32_hex_to_normal = bytes.maketrans(
     b"0123456789ABCDEFGHIJKLMNOPQRSTUV", b"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
 )
index 1b7269a095e2c349b0e5a527d55bd6bb92ffc7f5..1a0c0e0849f5f8d82e7850400e32a4ad69308389 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import binascii
+import struct
 
 import dns.exception
 import dns.immutable
index 36d4c7c6fe7243b19e38e75ae53fc192e8172993..d70e5373d35bfaeec124e32226d0dec42077cdc5 100644 (file)
 import struct
 
 import dns.edns
-import dns.immutable
 import dns.exception
+import dns.immutable
 import dns.rdata
 
-
 # We don't implement from_text, and that's ok.
 # pylint: disable=abstract-method
 
index 265bed0353c97096f29aa466806965cdd9c13cc8..7fd5547d4521bd2774e548693f73b882b415c911 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.nsbase
 import dns.immutable
+import dns.rdtypes.nsbase
 
 
 @dns.immutable.immutable
index c0c316b50b69ad385e312978531125214a7a2262..9c64c6e2283766dd37fcd3f344adae9a524bae28 100644 (file)
@@ -17,8 +17,8 @@
 
 import dns.exception
 import dns.immutable
-import dns.rdata
 import dns.name
+import dns.rdata
 
 
 @dns.immutable.immutable
index 3d5ad0f39644982270eb739e9f0d0d31054d8672..116050266ea661a101b3dd27e3a1caf6fd603955 100644 (file)
@@ -21,8 +21,8 @@ import struct
 import time
 
 import dns.dnssectypes
-import dns.immutable
 import dns.exception
+import dns.immutable
 import dns.rdata
 import dns.rdatatype
 
index 8d9c6bd0556b907950cae942735a936df107f350..950f2a066fb898df5bcd34a11df953c7d6b54228 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.mxbase
 import dns.immutable
+import dns.rdtypes.mxbase
 
 
 @dns.immutable.immutable
index 6f6fe58b36c7d950fc47406a088fcf4a6c0b1779..bde55e15fa53ccecc33f6fcabef589aef293d18f 100644 (file)
@@ -19,8 +19,8 @@ import struct
 
 import dns.exception
 import dns.immutable
-import dns.rdata
 import dns.name
+import dns.rdata
 
 
 @dns.immutable.immutable
index 1190e0deda18d8ab82e5bdab9249f996eb7e0b9e..c403589a214cde2426492f015a629ddee732d59f 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.txtbase
 import dns.immutable
+import dns.rdtypes.txtbase
 
 
 @dns.immutable.immutable
index 58ffcbbc6634c18e43aca7d4527b32b0f7a0b64d..67805452d6b7e17cf40dcc792130972f1b2b98b2 100644 (file)
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import binascii
+import struct
 
-import dns.rdata
 import dns.immutable
+import dns.rdata
 import dns.rdatatype
 
 
index 070f03af6341888b501b72c0c18c83238fc163f0..d5f5fc4581e62eb29865a26f0c0f9c84056ab903 100644 (file)
@@ -18,8 +18,8 @@
 import base64
 import struct
 
-import dns.immutable
 import dns.exception
+import dns.immutable
 import dns.rdata
 
 
index cc4b661107480d9da3e14aca35685418d8c8533d..f4e619300f574f6059f4e20210e120f01098a4ba 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.txtbase
 import dns.immutable
+import dns.rdtypes.txtbase
 
 
 @dns.immutable.immutable
index b4c95a3b6724d5f06451d8952b676c66df3dfebc..7463e277dc19db1f71f66fbd89abcaa29c2f8e2b 100644 (file)
@@ -20,9 +20,9 @@ import struct
 
 import dns.exception
 import dns.immutable
+import dns.name
 import dns.rdata
 import dns.rdtypes.util
-import dns.name
 
 
 @dns.immutable.immutable
index 1f86ba4938ad0c0d5111c68034ffd4a970ee5dee..3062843b6342fec269aa635088bef9a5eacb2b20 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
-import struct
 import binascii
+import struct
 
 import dns.immutable
 import dns.rdata
index 9905c7c92744375515c614bde1f3b4bc9d322c71..e457f38a08caaefb443397bbd70db40d4efdd488 100644 (file)
@@ -17,8 +17,8 @@
 
 import struct
 
-import dns.rdtypes.mxbase
 import dns.immutable
+import dns.rdtypes.mxbase
 
 
 @dns.immutable.immutable
index 7797fbafac373203948ae722c22f704e6599b803..15464cbda7f387d8b73d15605bfebc49d1402c27 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
-import dns.rdtypes.svcbbase
 import dns.immutable
+import dns.rdtypes.svcbbase
 
 
 @dns.immutable.immutable
index 1255739fa684c0f72c2828e441a24a0c18d7f7a9..8bb2bcb6b6915d059bbe1d8693b535f021e909a8 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import base64
+import struct
 
 import dns.exception
 import dns.immutable
index c27e9215a364e35df76a11ef2f439b88fe3990ca..a03d1d51496bf2d9e1f412add76a755f64b99f4e 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.mxbase
 import dns.immutable
+import dns.rdtypes.mxbase
 
 
 @dns.immutable.immutable
index 57dadd4747f6254dff7c7d0b454a662eed7644eb..0a18fdceb4ce34d30ba55113d6017ba375bc93c7 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import dns.rdtypes.nsbase
 import dns.immutable
+import dns.rdtypes.nsbase
 
 
 @dns.immutable.immutable
index b2216d6b9199a977bd08855430fc3105d724a375..5c0aa81ee682a8eda969460856dc7fcebf298681 100644 (file)
@@ -19,9 +19,9 @@ import struct
 
 import dns.exception
 import dns.immutable
+import dns.name
 import dns.rdata
 import dns.rdtypes.util
-import dns.name
 
 
 @dns.immutable.immutable
index 8b0b6bf79ea1fecc0501b8e5fd497de0574b80e0..84c5400728661ca94ff5a5dde4884a9a60771e35 100644 (file)
@@ -19,9 +19,9 @@ import struct
 
 import dns.exception
 import dns.immutable
+import dns.name
 import dns.rdata
 import dns.rdtypes.util
-import dns.name
 
 
 @dns.immutable.immutable
index 9a1ad1017d6a7b1f2ca578ccb35c42c239f819eb..ff3e9327775faf5f8293bbfa5dd8a0fc645bd0c3 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
-import dns.rdtypes.svcbbase
 import dns.immutable
+import dns.rdtypes.svcbbase
 
 
 @dns.immutable.immutable
index a671e203c1fdf2d540131d00c00d93be2ae49f84..26d287a3c10ba4c667a9365e355bb836767e06c8 100644 (file)
@@ -18,8 +18,8 @@
 import socket
 import struct
 
-import dns.ipv4
 import dns.immutable
+import dns.ipv4
 import dns.rdata
 
 try:
index 209251492a7dfeed681c007564e2caed94cd8ced..3bfcf860d44fd4bb8a3d1bf866e021d100ec8f72 100644 (file)
@@ -19,9 +19,9 @@ import base64
 import enum
 import struct
 
+import dns.dnssectypes
 import dns.exception
 import dns.immutable
-import dns.dnssectypes
 import dns.rdata
 
 # wildcard import
index 5a4e8c44778c728e3dc89d06075432e6136762f3..1ad0b7a5f019546e442200fd268e74e7e828ae75 100644 (file)
@@ -15,8 +15,8 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import binascii
+import struct
 
 import dns.dnssectypes
 import dns.immutable
index e524aea919662b24ab1976af509168dceffa7648..4c4068b25de1f6b8fb0ce3c18b2ae9ba659fd75e 100644 (file)
@@ -16,8 +16,8 @@
 
 import binascii
 
-import dns.rdata
 import dns.immutable
+import dns.rdata
 
 
 @dns.immutable.immutable
index b4b9b088b84221ab5b4647cf7ff35576f3c1bbcf..a6bae0781193b8cf4c6c24e727d8572601d6e0a7 100644 (file)
@@ -21,8 +21,8 @@ import struct
 
 import dns.exception
 import dns.immutable
-import dns.rdata
 import dns.name
+import dns.rdata
 import dns.rdtypes.util
 
 
index ba7a2ab773648b3802161560e452b42cf138869c..56d942356585546d216ef8015675a75e9c342fea 100644 (file)
@@ -19,8 +19,8 @@
 
 import dns.exception
 import dns.immutable
-import dns.rdata
 import dns.name
+import dns.rdata
 
 
 @dns.immutable.immutable
index a3fdc354b08670ce635882c7ebb93169e48d8840..4cdb7ab34f290bda535b282d6b586b773e7074a4 100644 (file)
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-import struct
 import binascii
+import struct
 
-import dns.rdata
 import dns.immutable
+import dns.rdata
 import dns.rdatatype
 
 
index d4cb9bb259b265584477d03742f82cdbd07a8a4b..fdbfb6465f81188512b47b7ed9a58a9ddca89e74 100644 (file)
@@ -17,9 +17,8 @@
 
 """TXT-like base class."""
 
-from typing import Any, Dict, Iterable, Optional, Tuple, Union
-
 import struct
+from typing import Any, Dict, Iterable, Optional, Tuple, Union
 
 import dns.exception
 import dns.immutable
index 3c495f618ab904e6533e8970a375a8a44e492d9f..53e7c0f6faf98477594b8ce65162160ce2ec0f98 100644 (file)
 
 import contextlib
 import io
-import struct
 import random
+import struct
 import time
 
 import dns.exception
 import dns.tsig
 
-
 QUESTION = 0
 ANSWER = 1
 AUTHORITY = 2
index c610eb4999a8f34d8dd88d0191d7b9e61044bbc0..a331e409bb31e5be87138977039c68667b23404e 100644 (file)
@@ -17,9 +17,6 @@
 
 """DNS stub resolver."""
 
-from typing import Any, Dict, Iterator, List, Optional, Tuple, Union
-
-from urllib.parse import urlparse
 import contextlib
 import random
 import socket
@@ -27,10 +24,12 @@ import sys
 import threading
 import time
 import warnings
+from typing import Any, Dict, Iterator, List, Optional, Tuple, Union
+from urllib.parse import urlparse
 
 import dns._ddr
-import dns.exception
 import dns.edns
+import dns.exception
 import dns.flags
 import dns.inet
 import dns.ipv4
index eb6a3b6bcfb64fbb628942e2ca27bb3f8071833a..8236c711f16f1e3b514f182a8254cb0e0ce45a68 100644 (file)
@@ -19,9 +19,9 @@
 
 import binascii
 
-import dns.name
-import dns.ipv6
 import dns.ipv4
+import dns.ipv6
+import dns.name
 
 ipv4_reverse_domain = dns.name.from_text("in-addr.arpa.")
 ipv6_reverse_domain = dns.name.from_text("ip6.arpa.")
index 0519051e14d2a6be8e361c70f75affd2ab259ff8..350de13e3be21f1e5117a49bed800d932b952f87 100644 (file)
 
 """DNS RRsets (an RRset is a named rdataset)"""
 
-from typing import Any, cast, Collection, Dict, Optional, Union
+from typing import Any, Collection, Dict, Optional, Union, cast
 
 import dns.name
-import dns.rdataset
 import dns.rdataclass
+import dns.rdataset
 import dns.renderer
 
 
index 0551578ad95eb6817afb2193bca6fd9dbb34458f..454cac4a85e609d3429df45cbdfcb4103bd19213 100644 (file)
 
 """Tokenize DNS zone file format"""
 
-from typing import Any, Optional, List, Tuple
-
 import io
 import sys
+from typing import Any, List, Optional, Tuple
 
 import dns.exception
 import dns.name
index 37aa37a87c9d714dcfe5415fdcf5607e29efbdf8..21dea77545e1ad33739031987bd2106a6a0c8c4b 100644 (file)
@@ -1,8 +1,7 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
-from typing import Any, Callable, Iterator, List, Optional, Tuple, Union
-
 import collections
+from typing import Any, Callable, Iterator, List, Optional, Tuple, Union
 
 import dns.exception
 import dns.name
index ca3be5908741b42d73aa390cfac7688774e8ad2f..58760f5f5dcc502f38b7741fd084408d857758a2 100644 (file)
@@ -23,9 +23,9 @@ import hmac
 import struct
 
 import dns.exception
-import dns.rdataclass
 import dns.name
 import dns.rcode
+import dns.rdataclass
 
 
 class BadTime(dns.exception.DNSException):
index 1f8bc5ff103d79769f04f6c9aa39c83af67925e6..1010a79f8f3c1856b765fa11e01cb5b6e2f6ea64 100644 (file)
@@ -17,9 +17,8 @@
 
 """A place to store TSIG keys."""
 
-from typing import Any, Dict
-
 import base64
+from typing import Any, Dict
 
 import dns.name
 import dns.tsig
index 2219ec563b7267574c9cb00ef2bb5a8f15bb50b7..bf1157acdfe7f4262afec600fd9a30691aa0f78d 100644 (file)
@@ -24,8 +24,8 @@ import dns.name
 import dns.opcode
 import dns.rdata
 import dns.rdataclass
-import dns.rdatatype
 import dns.rdataset
+import dns.rdatatype
 import dns.tsig
 
 
index 67e1659b52a04902f408b10881e189d66c918f68..fd78e674e6edbb0dc2dcab6bbc9515b4b2103520 100644 (file)
@@ -2,10 +2,9 @@
 
 """DNS Versioned Zones."""
 
-from typing import Callable, Deque, Optional, Set, Union
-
 import collections
 import threading
+from typing import Callable, Deque, Optional, Set, Union
 
 import dns.exception
 import dns.immutable
index f9fda98fe3806d92069bcf318c7de7ac6fe9256e..f6b1c6bddaaee855cdcfbc2ec1f8b3f8b78ada42 100644 (file)
@@ -17,6 +17,7 @@ if sys.platform == "win32":
 
     try:
         import threading
+
         import pythoncom  # pylint: disable=import-error
         import wmi  # pylint: disable=import-error
 
index cadf1686daff2bb3eada843810951bd9a6fbcb52..9f9b1573d521a924a43dde6c18a59912612798d8 100644 (file)
@@ -1,9 +1,8 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
-from typing import Iterator, Optional, Tuple
-
 import contextlib
 import struct
+from typing import Iterator, Optional, Tuple
 
 import dns.exception
 import dns.name
index bb165888918d95ea8cc86e7a9b0cdabcf6d92e38..dd247d33db4b6e827e5c540cf0e23965b0b0e10b 100644 (file)
@@ -21,9 +21,9 @@ import dns.exception
 import dns.message
 import dns.name
 import dns.rcode
-import dns.serial
 import dns.rdataset
 import dns.rdatatype
+import dns.serial
 import dns.transaction
 import dns.tsig
 import dns.zone
index 647538ce04271d4cd61fe6db5633518cdeb0d945..9e763f5f0cee92b99f397af83969fb2da8e28745 100644 (file)
 
 """DNS Zones."""
 
-from typing import Any, Dict, Iterator, Iterable, List, Optional, Set, Tuple, Union
-
 import contextlib
 import io
 import os
 import struct
+from typing import Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union
 
 import dns.exception
+import dns.grange
 import dns.immutable
 import dns.name
 import dns.node
-import dns.rdataclass
-import dns.rdatatype
 import dns.rdata
+import dns.rdataclass
 import dns.rdataset
+import dns.rdatatype
 import dns.rdtypes.ANY.SOA
 import dns.rdtypes.ANY.ZONEMD
 import dns.rrset
 import dns.tokenizer
 import dns.transaction
 import dns.ttl
-import dns.grange
 import dns.zonefile
-from dns.zonetypes import DigestScheme, DigestHashAlgorithm, _digest_hashers
+from dns.zonetypes import DigestHashAlgorithm, DigestScheme, _digest_hashers
 
 
 class BadZone(dns.exception.DNSException):
index 563722e66f1e2f1255940a2d756d4c2ba0eaaa5c..27f04924ff0f977e5496d1baa1c8f50481464a91 100644 (file)
 
 """DNS Zones."""
 
-from typing import Any, Iterable, List, Optional, Set, Tuple, Union
-
 import re
 import sys
+from typing import Any, Iterable, List, Optional, Set, Tuple, Union
 
 import dns.exception
+import dns.grange
 import dns.name
 import dns.node
+import dns.rdata
 import dns.rdataclass
 import dns.rdatatype
-import dns.rdata
 import dns.rdtypes.ANY.SOA
 import dns.rrset
 import dns.tokenizer
 import dns.transaction
 import dns.ttl
-import dns.grange
 
 
 class UnknownOrigin(dns.exception.DNSException):
index 72dbb0094421d81969a1a28c1d3884980f1e5b83..c31efc7b873a7b75c29d85f9771577d055490581 100644 (file)
@@ -76,3 +76,6 @@ build-backend = "poetry.core.masonry.api"
 
 [tool.ruff]
 ignore = ['E741', 'F401']
+
+[tool.isort]
+profile = "black"