| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/pip/_vendor/requests/__pycache__/ |
Upload File : |
B
�N�a� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ dZ
yddlmZ W n ek
r� dZY nX ydd lmZ W n ek
r� dZdZdZY nX ddlZddlZd
d� Zdd
� Zdd� Zedkr�e� dS )z'Module containing bug report helper(s).� )�print_functionN)�idna)�urllib3� )�__version__)�chardet)� pyopensslc C s� 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.7/site-packages/pip/_vendor/requests/help.py�_implementation s
r c
C s� yt �� t �� d�} W n tk
r4 ddd�} Y nX t� }dtji}ddi}ddi}trddtji}trrdtji}ddd�}t r�t jdt j
j d�}dtt
dd�i}dttdd�i}tj}d|dk r�d| ndi} | || tdk tdk||||||dtid �S )
z&Generate information for a bug report.)�system�releaser r
Nr
)r
Zopenssl_versionz%xr )r r �
system_sslZusing_pyopensslZusing_charset_normalizerZ pyOpenSSLr r �charset_normalizer�cryptographyr Zrequests)r r r �IOErrorr r r r r �OpenSSLZSSLZOPENSSL_VERSION_NUMBER�getattrr r �sslr �requests_version)
Z
platform_infoZimplementation_infoZurllib3_infoZcharset_normalizer_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ idna_infor Zsystem_ssl_infor r r �infoA sF
r# c C s t tjt� ddd�� dS )z)Pretty-print the bug information as JSON.T� )Z sort_keys�indentN)�print�json�dumpsr# r r r r �main~ s r) �__main__)�__doc__Z
__future__r r'