|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /proc/17567/root/usr/local/lib/python3.6/site-packages/requests/__pycache__/ |
Upload File : |
3
F�Kd� � @ s d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl m
Z yddlZW n e
k
rp dZY nX yddlZW n e
k
r� dZY nX yddlmZ W n e
k
r� dZdZdZY nX ddlZddlZdd� Zd d
� Zdd� Zed
k�re� dS )z'Module containing bug report helper(s).� )�print_functionN� )�__version__)� pyopensslc C s� t j� } | dkrt j� }nj| dkr\dtjjtjjtjjf }tjjdkr�dj |tjjg�}n(| dkrnt j� }n| dkr�t j� }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.
�CPython�PyPyz%s.%s.%s�final� �Jython�
IronPython�Unknown)�name�version)
�platform�python_implementation�python_version�sys�pypy_version_info�major�minor�micro�releaselevel�join)�implementation�implementation_version� r �1/tmp/pip-build-8nxjc3nm/requests/requests/help.py�_implementation# s
r c
C s� yt j� t j� 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 �openssl_versionz%xr )r r �
system_sslZusing_pyopensslZusing_charset_normalizerZ pyOpenSSL�urllib3�chardet�charset_normalizer�cryptography�idna�requests)r r r �IOErrorr r"