GitHub user lin31504 opened a pull request:

    Use sslv23 constant in newer versions of python

    ## Better (replace this with a logical title for your changes)
    ### I think the new one is much better.

You can merge this pull request into a Git repository by running:

    $ git pull 

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #904
commit 4b218afdac4d6bbde00d4a0089dfa914ef5bd575
Author: Tomaz Muraus <>
Date:   2016-01-16T13:13:14Z

    Update SSL related code to use ssl.PROTOCOL_v23 constant on Python >= 2.7.9 
    Python >= 3.4 by default.
    In those versions SSL v3.0 is disabled by default so it's safe to use this
    constant and it results in the best compatibility since it will use TLS 
v1.0 /
    v1.1 / v1.2 based on the versions supported by the server.
    Also refactor exception wrapping functionality into a separate function.

commit 67b5131222ab72a583f203af69a9b0dd42876877
Author: Tomaz Muraus <>
Date:   2016-01-16T13:31:06Z

    Add test cases for get_ssl_version function.


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to