Skip to content

Commit 5af5b6a

Browse files
committed
fix formatting to satisfy linters
1 parent 4744cd1 commit 5af5b6a

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

cheroot/makefile.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ def write(self, b):
3737
return len(b)
3838

3939
def _safe_call(self, is_reader, call, *args, **kwargs): # noqa: C901
40-
"""Method to be overridden in subclasses/mix-ins. Intended to call the
41-
supplied callable with retries, as needed."""
40+
"""Call the supplied callable with retries, as needed.
41+
42+
Method to be overridden in subclasses/mix-ins.
43+
"""
4244
return call(*args, **kwargs)
4345

4446
def _flush_unlocked(self):
@@ -47,8 +49,9 @@ def _flush_unlocked(self):
4749
try:
4850
# ssl sockets only except 'bytes', not bytearrays
4951
# so perhaps we should conditionally wrap this for perf?
50-
n = self._safe_call(False, self.raw.write,
51-
bytes(self._write_buf))
52+
n = self._safe_call(
53+
False, self.raw.write, bytes(self._write_buf)
54+
)
5255
except io.BlockingIOError as e:
5356
n = e.characters_written
5457
del self._write_buf[:n]

cheroot/ssl/pyopenssl.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,13 @@ def read(self, *args, **kwargs):
159159
)
160160

161161
def sendall(self, *args, **kwargs):
162-
"""Send whole message to the socket - not supported due to
163-
https://github.com/pyca/pyopenssl/issues/176."""
164-
raise NotImplementedError("sendall() not supported on pyOpenSSL due "
165-
"to issue #176")
162+
"""Send whole message to the socket.
163+
164+
Not supported due to https://github.com/pyca/pyopenssl/issues/176.
165+
"""
166+
raise NotImplementedError(
167+
'sendall() not supported on pyOpenSSL due to issue #176'
168+
)
166169

167170
def send(self, *args, **kwargs):
168171
"""Send some part of message to the socket."""

0 commit comments

Comments
 (0)