-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify SSLSocket / SSLObject doc string #9972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice hack :)
Lib/ssl.py
Outdated
@@ -781,6 +781,12 @@ def verify_client_post_handshake(self): | |||
return self._sslobj.verify_client_post_handshake() | |||
|
|||
|
|||
def _sslcopydoc(func): | |||
"""Copy doc string from SSLObject to SSLSocket""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: it's called a "docstring" (no space), no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiran could you fix doc string
? thanks
Instead of maintaining the same doc string two times, let's copy common doc strings from SSLObject methods and properties to SSLSocket. Signed-off-by: Christian Heimes <christian@python.org>
Thanks @tiran for the PR, and @matrixise for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-13384 is a backport of this pull request to the 3.7 branch. |
Instead of maintaining the same doc string two times, let's copy common doc strings from SSLObject methods and properties to SSLSocket. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 80ed353) Co-authored-by: Christian Heimes <christian@python.org>
@tiran thanks |
Instead of maintaining the same doc string two times, let's copy common doc strings from SSLObject methods and properties to SSLSocket. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 80ed353) Co-authored-by: Christian Heimes <christian@python.org>
Instead of maintaining the same doc string two times, let's copy common
doc strings from SSLObject methods and properties to SSLSocket.
Signed-off-by: Christian Heimes christian@python.org