Skip to content

Commit

Permalink
turn doc string into a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vashek committed Nov 2, 2020
1 parent 4e1f101 commit f4b713b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions cheroot/ssl/pyopenssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,13 @@ def read(self, *args, **kwargs):
)

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

def send(self, *args, **kwargs):
Expand Down

0 comments on commit f4b713b

Please sign in to comment.