HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/requests/__pycache__/help.cpython-310.pyc
o

�N�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�sysZpypy_version_info�major�minor�micro�releaselevel�join)�implementationZimplementation_version�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�releaserr
Nr)r
Zopenssl_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�infoEsX
�
��


�
�����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 rrr*r"�ImportErrorr!Zurllib3.contribrr&r#rr+r2�__name__rrrr�<module>sB���#;
�