Skip to content

Commit 406079a

Browse files
committed
black autoformatting fixes
1 parent 8229b34 commit 406079a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dns/_asyncio_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def connection_lost(self, exc):
4242
if exc is None:
4343
# EOF we triggered. Is there a better way to do this?
4444
try:
45-
raise EOFError('EOF')
45+
raise EOFError("EOF")
4646
except EOFError as e:
4747
self.recvfrom.set_exception(e)
4848
else:

dns/asyncquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ async def _read_exactly(sock, count, expiration):
342342
while count > 0:
343343
n = await sock.recv(count, _timeout(expiration))
344344
if n == b"":
345-
raise EOFError('EOF')
345+
raise EOFError("EOF")
346346
count = count - len(n)
347347
s = s + n
348348
return s

dns/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ def _net_read(sock, count, expiration):
978978
try:
979979
n = sock.recv(count)
980980
if n == b"":
981-
raise EOFError('EOF')
981+
raise EOFError("EOF")
982982
count -= len(n)
983983
s += n
984984
except (BlockingIOError, ssl.SSLWantReadError):

0 commit comments

Comments
 (0)