From f4b713bc3059379f62532c21037ae7d85c5ca9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dvo=C5=99=C3=A1k=20V=C3=A1clav?= Date: Mon, 2 Nov 2020 14:34:40 +0100 Subject: [PATCH] turn doc string into a comment --- cheroot/ssl/pyopenssl.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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):