Skip to content

Commit 8917093

Browse files
Fix lint
1 parent 70ce80d commit 8917093

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

slack_sdk/socket_mode/builtin/internals.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import errno
21
import hashlib
32
import itertools
43
import os
@@ -25,7 +24,7 @@ def _parse_connect_response(sock: Socket) -> Tuple[Optional[int], str]:
2524
while True:
2625
c = sock.recv(1)
2726
if not c:
28-
raise ConnectionError('Connection is closed')
27+
raise ConnectionError("Connection is closed")
2928
line.append(c)
3029
if c == b"\n":
3130
break
@@ -118,7 +117,7 @@ def _read_http_response_line(sock: ssl.SSLSocket) -> str:
118117
while True:
119118
b: bytes = sock.recv(1)
120119
if not b:
121-
raise ConnectionError('Connection is closed')
120+
raise ConnectionError("Connection is closed")
122121
c: str = b.decode("utf-8")
123122
if c == "\r":
124123
break
@@ -206,7 +205,7 @@ def receive(specific_buffer_size: Optional[int] = None):
206205
with sock_receive_lock:
207206
received_bytes = sock.recv(size)
208207
if not received_bytes:
209-
raise ConnectionError('Connection is closed')
208+
raise ConnectionError("Connection is closed")
210209
if all_message_trace_enabled:
211210
logger.debug(f"Received bytes: {received_bytes}")
212211
return received_bytes

0 commit comments

Comments
 (0)