From: Bob Halley Date: Fri, 13 Sep 2024 18:37:22 +0000 (-0700) Subject: black autoformatting fixes X-Git-Tag: v2.7.0rc1~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=406079ae0ca33abf372b2ab91f1c5994e4115836;p=thirdparty%2Fdnspython.git black autoformatting fixes --- diff --git a/dns/_asyncio_backend.py b/dns/_asyncio_backend.py index 7ab16242..6ab168de 100644 --- a/dns/_asyncio_backend.py +++ b/dns/_asyncio_backend.py @@ -42,7 +42,7 @@ class _DatagramProtocol: if exc is None: # EOF we triggered. Is there a better way to do this? try: - raise EOFError('EOF') + raise EOFError("EOF") except EOFError as e: self.recvfrom.set_exception(e) else: diff --git a/dns/asyncquery.py b/dns/asyncquery.py index 0848b877..eac10de3 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -342,7 +342,7 @@ async def _read_exactly(sock, count, expiration): while count > 0: n = await sock.recv(count, _timeout(expiration)) if n == b"": - raise EOFError('EOF') + raise EOFError("EOF") count = count - len(n) s = s + n return s diff --git a/dns/query.py b/dns/query.py index b4acf680..1b0703b2 100644 --- a/dns/query.py +++ b/dns/query.py @@ -978,7 +978,7 @@ def _net_read(sock, count, expiration): try: n = sock.recv(count) if n == b"": - raise EOFError('EOF') + raise EOFError("EOF") count -= len(n) s += n except (BlockingIOError, ssl.SSLWantReadError):