Skip to content

Commit f4b713b

Browse files
committed
turn doc string into a comment
1 parent 4e1f101 commit f4b713b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

cheroot/ssl/pyopenssl.py

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

161161
def sendall(self, *args, **kwargs):
162-
"""Send whole message to the socket.
163-
164-
Not supported due to https://github.com/pyca/pyopenssl/issues/176.
165-
Until that bug is fixed, sendall() may throw SSL.WantWriteError, but
166-
there is no correct way to retry the call because we don't know how
167-
many bytes were already transmitted. We could work around this by
168-
reimplementing sendall() using send(), but we don't actually use
169-
sendall() anywhere.
170-
"""
162+
"""Send whole message to the socket. Unsupported, do not use."""
163+
# Not supported due to https://github.com/pyca/pyopenssl/issues/176.
164+
# Until that bug is fixed, sendall() may throw SSL.WantWriteError, but
165+
# there is no correct way to retry the call because we don't know how
166+
# many bytes were already transmitted. We could work around this by
167+
# reimplementing sendall() using send(), but we don't actually use
168+
# sendall() anywhere.
171169
raise NotImplementedError('sendall() is unsupported by pyOpenSSL')
172170

173171
def send(self, *args, **kwargs):

0 commit comments

Comments
 (0)