]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint from flake
authorBob Halley <halley@dnspython.org>
Fri, 17 Dec 2021 13:48:36 +0000 (05:48 -0800)
committerBob Halley <halley@dnspython.org>
Fri, 17 Dec 2021 13:48:36 +0000 (05:48 -0800)
dns/asyncquery.py
dns/win32util.py
dns/zone.py

index 77936e902316784a3d22cfba3436bdeba95a311b..4ec97fb7d21852d5e72bf049b257b176b789f86a 100644 (file)
@@ -375,8 +375,6 @@ async def https(q, where, timeout=None, port=443, source=None, source_port=0,
     if not _have_httpx:
         raise NoDOH('httpx is not available.')  # pragma: no cover
 
-    _httpx_ok = True
-
     wire = q.to_wire()
     try:
         af = dns.inet.af_for_address(where)
index 05e216382108bb4e52e176aa5d3827545eeadb6b..745317a397bf8db7fede5e45a627da7a5ca849f5 100755 (executable)
@@ -16,7 +16,7 @@ if sys.platform == 'win32':
         import pythoncom
         import wmi
         _have_wmi = True
-    except Exception as e:
+    except Exception:
         _have_wmi = False
 
     def _config_domain(domain):
index 8f98a55f0dea5c80cbb99a8773093473f126054c..2e73144613b20b5134f9cb42876cd820fd1bd4eb 100644 (file)
@@ -103,7 +103,7 @@ class DigestHashAlgorithm(dns.enum.IntEnum):
 
 _digest_hashers = {
     DigestHashAlgorithm.SHA384: hashlib.sha384,
-    DigestHashAlgorithm.SHA512 : hashlib.sha512
+    DigestHashAlgorithm.SHA512: hashlib.sha512,
 }