]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint
authorBob Halley <halley@dnspython.org>
Fri, 9 Feb 2024 21:36:44 +0000 (13:36 -0800)
committerBob Halley <halley@dnspython.org>
Fri, 9 Feb 2024 21:36:44 +0000 (13:36 -0800)
dns/dnssecalgs/__init__.py
dns/name.py
dns/quic/__init__.py

index 38a1b567eea11d4d2b4ce4b4143391cb48b65cde..3d9181a761c0f67213858cc9b2c573a562ca406f 100644 (file)
@@ -2,6 +2,9 @@ from typing import Dict, Optional, Tuple, Type, Union
 
 import dns.name
 from dns.dnssecalgs.base import GenericPrivateKey
+from dns.dnssectypes import Algorithm
+from dns.exception import UnsupportedAlgorithm
+from dns.rdtypes.ANY.DNSKEY import DNSKEY
 
 if dns._features.have("dnssec"):
     from dns.dnssecalgs.dsa import PrivateDSA, PrivateDSANSEC3SHA1
@@ -19,10 +22,6 @@ if dns._features.have("dnssec"):
 else:
     _have_cryptography = False
 
-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 933c1612246dfbc2a2935f22c0a0015053e55e9f..22ccb39211e113e68a3c4121d0a68181d6d9c9f8 100644 (file)
@@ -25,6 +25,10 @@ import struct
 from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
 
 import dns._features
+import dns.enum
+import dns.exception
+import dns.immutable
+import dns.wire
 
 if dns._features.have("idna"):
     import idna  # type: ignore
@@ -33,11 +37,6 @@ if dns._features.have("idna"):
 else:  # pragma: no cover
     have_idna_2008 = False
 
-import dns.enum
-import dns.exception
-import dns.immutable
-import dns.wire
-
 CompressType = Dict["Name", int]
 
 
index 15803d933d6f1bdbdb750c0a57d9ad01b3450dc6..20aff34552771a68db84e027912c4a461adadc6e 100644 (file)
@@ -1,11 +1,11 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
 import dns._features
+import dns.asyncbackend
 
 if dns._features.have("doq"):
     import aioquic.quic.configuration  # type: ignore
 
-    import dns.asyncbackend
     from dns._asyncbackend import NullContext
     from dns.quic._asyncio import (
         AsyncioQuicConnection,