Your IP : 18.223.171.83


Current Path : /opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/help.cpython-37.pyc

B

ֈ�`��@sdZddlmZddlZddlZddlZddlZddlZddlZddl	m
ZyddlZWne
k
rpdZYnXyddlZWne
k
r�dZYnXyddlmZWn e
k
r�dZdZdZYnXddlZddlZdd�Zd	d
�Zdd�Zed
k�re�dS)z'Module containing bug report helper(s).�)�print_functionN�)�__version__)�	pyopensslcCs�t��}|dkrt��}nj|dkr\dtjjtjjtjjf}tjjdkr�d�	|tjjg�}n(|dkrnt��}n|dkr�t��}nd}||d	�S)
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/python37/lib/python3.7/site-packages/requests/help.py�_implementation#s 


rc

Cs�yt��t��d�}Wntk
r4ddd�}YnXt�}dtji}ddi}ddi}trddtji}trrdtji}ddd�}t	r�t	jdt	j
jd�}dtt
dd�i}dttdd�i}tj}d|dk	r�d|ndi}	|||	tdk	tdk||||||dtid	�S)
z&Generate information for a bug report.)�system�releaserrNr	)rZopenssl_versionz%xr)rr�
system_sslZusing_pyopensslZusing_charset_normalizerZ	pyOpenSSL�urllib3�chardet�charset_normalizer�cryptography�idna�requests)rrr�IOErrorrr rr"r!�OpenSSL�SSLZOPENSSL_VERSION_NUMBER�getattrr#r$�sslr�requests_version)
�
platform_infoZimplementation_infoZurllib3_infoZcharset_normalizer_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ	idna_inforZsystem_ssl_inforrr�infoDsF


r-cCsttjt�ddd��dS)z)Pretty-print the bug information as JSON.T�)�	sort_keys�indentN)�print�json�dumpsr-rrrr�main�sr4�__main__)�__doc__�
__future__rr2rrr*r$r r	rr+r"�ImportErrorr!Zurllib3.contribrr'r#rr-r4�__name__rrrr�<module>s:


!=


?>