HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/self/root/usr/local/lib/python3.10/dist-packages/requests/__pycache__/help.cpython-310.pyc
o

;��g#�@s�dZddlZddlZddlZddlZddlZddlZddlmZ	zddl
Z
Wney1dZ
YnwzddlZWneyCdZYnwzddl
mZWney[dZdZdZYn	wddlZddlZdd�Zdd	�Zd
d�Zedkrye�dSdS)
z'Module containing bug report helper(s).�N�)�__version__)�	pyopensslcCs�t��}|dkr
t��}n5|dkr.d�tjjtjjtjj�}tjj	dkr-d�
|tjj	g�}n|dkr7t��}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 3.10.3 it will return
    {'name': 'CPython', 'version': '3.10.3'}.

    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{}.{}.{}�final��Jython�
IronPython�Unknown)�name�version)�platform�python_implementation�python_version�format�sys�pypy_version_info�major�minor�micro�releaselevel�join)�implementation�implementation_version�r�8/usr/local/lib/python3.10/dist-packages/requests/help.py�_implementation"s(
�
��


rc

Cs�zt��t��d�}Wntyddd�}Ynwt�}dtji}ddi}ddi}tr1dtji}tr8dtji}ddd�}t	rIt	jt	j
jd�d�}dtt
dd�i}dttdd�i}tj}d|dure|d�ndi}	|||	tdutdu||||||dtid	�S)
z&Generate information for a bug report.)�system�releaserr
Nr)r
�openssl_version�xr)rr�
system_ssl�using_pyopenssl�using_charset_normalizer�	pyOpenSSL�urllib3�chardet�charset_normalizer�cryptography�idna�requests)rrr�OSErrorrr&rr(r'�OpenSSL�SSL�OPENSSL_VERSION_NUMBER�getattrr)r*�sslr�requests_version)
�
platform_info�implementation_info�urllib3_info�charset_normalizer_info�chardet_info�pyopenssl_info�cryptography_info�	idna_infor"�system_ssl_inforrr�infoEsX
�
��


�
�����r<cCsttjt�ddd��dS)z)Pretty-print the bug information as JSON.T�)�	sort_keys�indentN)�print�json�dumpsr<rrrr�main�srC�__main__)�__doc__rArr1rr*r&rrr2r(�ImportErrorr'�urllib3.contribrr-r)rr<rC�__name__rrrr�<module>sB���#;
�