HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/requests/__pycache__/help.cpython-310.pyc
o

;j��@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��}n8|dkr1tj}|j�d|j�d|j��}tjjdkr0d�	|tjjg�}n|dkr:t��}n|dkrCt��}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�PyPy�.�final��Jython�
IronPython�Unknown)�name�version)
�platform�python_implementation�python_version�sysZpypy_version_info�major�minor�micro�releaselevel�join)�implementationZimplementation_versionZpypy�r�A/opt/saltstack/salt/lib/python3.10/site-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�releaserrNr	)rZopenssl_version�xr)rr�
system_sslZusing_pyopensslZusing_charset_normalizerZ	pyOpenSSL�urllib3�chardet�charset_normalizer�cryptography�idnaZrequests)rrr�OSErrorrr rr"r!�OpenSSLZSSL�OPENSSL_VERSION_NUMBER�getattrr#r$�sslr�requests_version)
Z
platform_infoZimplementation_infoZurllib3_infoZcharset_normalizer_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ	idna_inforZsystem_ssl_inforrr�infoBsX
�
��


�
�����r+cCsttjt�ddd��dS)z)Pretty-print the bug information as JSON.T�)�	sort_keys�indentN)�print�json�dumpsr+rrrr�main}sr2�__main__)�__doc__r0rr)rr$r r	rr*r"�ImportErrorr!Zurllib3.contribrr&r#rr+r2�__name__rrrr�<module>sB��� ;
�