From 8388a8d3cecf3e0077f6f3b82dacdcbe0540ce1a Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 17 Dec 2021 05:48:36 -0800 Subject: [PATCH] lint from flake --- dns/asyncquery.py | 2 -- dns/win32util.py | 2 +- dns/zone.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dns/asyncquery.py b/dns/asyncquery.py index 77936e90..4ec97fb7 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -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) diff --git a/dns/win32util.py b/dns/win32util.py index 05e21638..745317a3 100755 --- a/dns/win32util.py +++ b/dns/win32util.py @@ -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): diff --git a/dns/zone.py b/dns/zone.py index 8f98a55f..2e731446 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -103,7 +103,7 @@ class DigestHashAlgorithm(dns.enum.IntEnum): _digest_hashers = { DigestHashAlgorithm.SHA384: hashlib.sha384, - DigestHashAlgorithm.SHA512 : hashlib.sha512 + DigestHashAlgorithm.SHA512: hashlib.sha512, } -- 2.47.3