Current File : //lib/python3.9/site-packages/pip/_vendor/requests/__pycache__/help.cpython-39.pyc
a

[��f��@s�dZddlmZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZdZ
zddlmZWney~dZYn0zdd	lmZWney�dZdZdZYn0ddlZddlZd
d�Zdd
�Zdd�Zedkr�e�dS)z'Module containing bug report helper(s).�)�print_functionN)�idna)�urllib3�)�__version__)�chardet)�	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.
    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.9/site-packages/pip/_vendor/requests/help.py�_implementation s$
��

rc

Cs�zt��t��d�}Wnty2ddd�}Yn0t�}dtji}ddi}ddi}trbdtji}trpdtji}ddd�}t	r�t	jdt	j
jd�}dtt
dd�i}dttdd�i}tj}d|dur�d|ndi}	|||	tdutdu||||||dtid	�S)
z&Generate information for a bug report.)�system�releaserr
Nr
)r
Zopenssl_versionz%xr)rr�
system_sslZusing_pyopensslZusing_charset_normalizerZ	pyOpenSSLrr�charset_normalizer�cryptographyrZrequests)rrr�IOErrorrrrrr�OpenSSLZSSLZOPENSSL_VERSION_NUMBER�getattrrr�sslr�requests_version)
Z
platform_infoZimplementation_infoZurllib3_infoZcharset_normalizer_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ	idna_inforZsystem_ssl_inforrr�infoAsX�
�


�
������r#cCsttjt�ddd��dS)z)Pretty-print the bug information as JSON.T�)Z	sort_keys�indentN)�print�json�dumpsr#rrrr�main~sr)�__main__)�__doc__Z
__future__rr'rrr!Zpip._vendorrrr
rr"rr�ImportErrorZpip._vendor.urllib3.contribrrrrr#r)�__name__rrrr�<module>s4

!=