Your IP : 216.73.216.196


Current Path : /opt/alt/python35/lib/python3.5/site-packages/requests/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/requests/__pycache__/help.cpython-35.pyc



m"[�@sdZddlmZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZyddl
mZWn$ek
r�dZdZdZYnXddlZddlZdd�Zd	d
�Zdd�Zed
kre�dS)z'Module containing bug report helper(s).�)�print_functionN�)�__version__)�	pyopensslcCs�tj�}|dkr'tj�}n�|dkr�dtjjtjjtjjf}tjjdkr�dj	|tjjg�}n<|dkr�tj�}n!|dkr�tj�}nd}d	|d
|iS)a�Return a dict with the Python implementation and version.

    Provide both the name and the version of the Python implementation
    currently running. For example, on CPython 2.7.5 it will return
    {'name': 'CPython', 'version': '2.7.5'}.

    This function works best on CPython and PyPy: in particular, it probably
    doesn't work for Jython or IronPython. Future investigation should be done
    to work out the correct shape of the code for those platforms.
    �CPython�PyPyz%s.%s.%s�final��Jython�
IronPython�Unknown�name�version)
�platform�python_implementation�python_version�sysZpypy_version_info�major�minor�micro�releaselevel�join)�implementation�implementation_version�r�>/opt/alt/python35/lib/python3.5/site-packages/requests/help.py�_implementations 	rc	CsWy"dtj�dtj�i}Wn$tk
rHddddi}YnXt�}dtji}dtji}ddddi}tr�dtjddtj	j
i}dttd	d�i}dtt
d	d�i}ttd
d�}d|dk	rd|ndi}d|d|d
|dtdk	d|d|d|d|d|ddtii
S)z&Generate information for a bug report.�system�releaserrNZopenssl_versionr	z%xr�OPENSSL_VERSION_NUMBERrr�
system_sslZusing_pyopensslZ	pyOpenSSL�urllib3�chardet�cryptography�idna�requests)rrr�IOErrorrr!rr"�OpenSSL�SSLr�getattrr#r$�sslr�requests_version)	�
platform_infoZimplementation_infoZurllib3_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ	idna_infor Zsystem_ssl_inforrr�info;s:
		"r-cCs&ttjt�dddd��dS)z)Pretty-print the bug information as JSON.�	sort_keysT�indent�N)�print�json�dumpsr-rrrr�mainrsr4�__main__)�__doc__�
__future__rr2rrr*r$r!r"r	rr+Zurllib3.contribr�ImportErrorr'r#rr-r4�__name__rrrr�<module>s,
!7