]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
black autoformatting fixes
authorBob Halley <halley@dnspython.org>
Fri, 13 Sep 2024 18:37:22 +0000 (11:37 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 13 Sep 2024 18:37:22 +0000 (11:37 -0700)
dns/_asyncio_backend.py
dns/asyncquery.py
dns/query.py

index 7ab162427d742f59f71dca109b0ebdb4b4a460db..6ab168de543892770055eb8412bf3de80edb046c 100644 (file)
@@ -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:
index 0848b87724ef66176688394d006c410277eb0cd5..eac10de3552cd1ce8e25f0d51cb165d1b1a7f22a 100644 (file)
@@ -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
index b4acf680d43e91a33460de03a3ee684713017bf3..1b0703b2caaadcb6739ee8096201c2690432b5d9 100644 (file)
@@ -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):