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
bpo-39259: nntplib.NNTP/NNTP_SSL refactoring #17939
Conversation
I prefer to always attach a bpo to get more context. This change is connected to: https://bugs.python.org/issue39259 |
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
@vstinner Yes, that's reasonable. I will update this PR with merging 2 classes. |
cpython/Lib/test/test_nntplib.py Line 424 in 2e6a8ef
Hmm... _NNTPBase is also used for testing server code. |
Lib/nntplib.py
Outdated
usenetrc, timeout) | ||
|
||
def _create_socket(self, timeout): | ||
self.sock = super()._create_socket(timeout) |
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.
In NNTP, the method only creates a socket, it doesn't assign self.sock. Please replace self.sock
with sock
.
Ok. |
@vstinner Updated!
I will create a new issue for this :) |
https://bugs.python.org/issue39305 is created :) |
This PR is only refactoring work, so the news is skipped. :)
https://bugs.python.org/issue39259