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
ftplib.FTP_TLS's default constructor does not work with TLSv1.1 or TLSv1.2 #67300
Comments
When trying to connect to a server which only supports TLS version 1.1 or 1.2, the following error is raised: The following lines should also be changed: |
Why don't you do just that? |
Well, because the ssl_version parameter should have a purpose. If it doesn't, the least we could do is remove it from the docs. |
ssl_version is a class attribute so you can simply set that before instantiating FTP_TLS class:
|
I know that, but it seems pretty unusual. And I would never had guessed from the documentation, I had to read the source. |
New changeset 414c450e8406 by Benjamin Peterson in branch '3.4': New changeset 33603f7949c5 by Benjamin Peterson in branch 'default': |
New changeset 29689050ec78 by Benjamin Peterson in branch '3.4': |
I think that this fix should be applied also in 2.7 branch. |
New changeset 98ee845a139a by Benjamin Peterson in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: