diff --git a/cheroot/ssl/pyopenssl.py b/cheroot/ssl/pyopenssl.py index e39c77754a..0dbd8ba109 100644 --- a/cheroot/ssl/pyopenssl.py +++ b/cheroot/ssl/pyopenssl.py @@ -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):