Skip to content

Commit 019d105

Browse files
committed
Black
1 parent e0f6d5e commit 019d105

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

adafruit_requests.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
import errno
5757

58+
5859
class _RawResponse:
5960
def __init__(self, response):
6061
self._response = response
@@ -73,9 +74,11 @@ def readinto(self, buf):
7374
into buf."""
7475
return self._response._readinto(buf) # pylint: disable=protected-access
7576

77+
7678
class _SendFailed(Exception):
7779
"""Custom exception to abort sending a request."""
7880

81+
7982
class Response:
8083
"""The response from a request, contains all the headers/content"""
8184

@@ -430,7 +433,9 @@ def _get_socket(self, host, port, proto, *, timeout=1):
430433
retry_count += 1
431434

432435
try:
433-
sock = self._socket_pool.socket(addr_info[0], addr_info[1], addr_info[2])
436+
sock = self._socket_pool.socket(
437+
addr_info[0], addr_info[1], addr_info[2]
438+
)
434439
except OSError:
435440
continue
436441

@@ -617,6 +622,7 @@ def connect(self, address):
617622
except RuntimeError as e:
618623
raise OSError(errno.ENOMEM)
619624

625+
620626
class _FakeSSLContext:
621627
def __init__(self, iface):
622628
self._iface = iface

0 commit comments

Comments
 (0)