Skip to content
Myr

fix OPENSSL_VERSION_NUMBER check on Python2.6's ssl module

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nate Prewitt · committed by Nate Prewitt · parent bbeb1c3 · Browse files · 1 file+7 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−3 removed

  • other:+7 added−3 removed

1 file+7 added−3 removed

modified:requests/help.py+7 added-3 removed
83 unmodified lines
84 cryptography_info = {85 'version': getattr(cryptography, '__version__', ''),86 }8788 # OPENSSL_VERSION_NUMBER doesn't exist in the Python 2.6 ssl module.89 system_ssl = getattr(ssl, 'OPENSSL_VERSION_NUMBER', None)90 system_ssl_info = {91 'version': '%x' % system_ssl if system_ssl is not None else ''92 }9394 return {95 'platform': platform_info,96 'implementation': implementation_info,91 'system_ssl': {92 'version': '%x' % ssl.OPENSSL_VERSION_NUMBER,93 },97 'system_ssl': system_ssl_info,98 'using_pyopenssl': pyopenssl is not None,99 'pyOpenSSL': pyopenssl_info,100 'urllib3': urllib3_info,101 'chardet': chardet_info,
14 unmodified lines