????

Your IP : 3.21.43.123


Current Path : /lib/python3.6/site-packages/pip/_vendor/requests/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/pip/_vendor/requests/__pycache__/help.cpython-36.pyc

3

�PfS�@s�dZddlmZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZ
ydd	lmZWn ek
r�dZdZdZYnXddlZddlZd
d�Zdd
�Zdd�Zedkr�e�dS)z'Module containing bug report helper(s).�)�print_functionN)�idna)�urllib3)�chardet�)�__version__)�	pyopensslcCs�tj�}|dkrtj�}nj|dkr\dtjjtjjtjjf}tjjdkr�dj	|tjjg�}n(|dkrntj�}n|dkr�tj�}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.
    ZCPythonZPyPyz%s.%s.%s�final�ZJythonZ
IronPython�Unknown)�name�version)
�platformZpython_implementationZpython_version�sysZpypy_version_info�major�minor�micro�releaselevel�join)�implementationZimplementation_version�r�/usr/lib/python3.6/help.py�_implementations 


rc	Cs�ytj�tj�d�}Wntk
r4ddd�}YnXt�}dtji}dtji}ddd�}trrtjdtj	j
d�}dttdd�i}dtt
dd�i}ttd	d�}d|dk	r�d|ndi}|||tdk	|||||dtid
�
S)z&Generate information for a bug report.)�system�releaserr
Nr
)r
Zopenssl_versionz%xr�OPENSSL_VERSION_NUMBER)
rr�
system_sslZusing_pyopensslZ	pyOpenSSLrr�cryptographyrZrequests)rrr�IOErrorrrrr�OpenSSLZSSLr�getattrrr�sslr�requests_version)	Z
platform_infoZimplementation_infoZurllib3_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ	idna_inforZsystem_ssl_inforrr�info;s8

r#cCsttjt�ddd��dS)z)Pretty-print the bug information as JSON.T�)Z	sort_keys�indentN)�print�json�dumpsr#rrrr�mainrsr)�__main__)�__doc__Z
__future__rr'rrr!Zpip._vendorrrrr
rr"Zpackages.urllib3.contribr�ImportErrorrrrr#r)�__name__rrrr�<module>s,
!7