File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/requests/__pycache__/help.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlm Z dZdZzddl mZ W n ey? dZdZdZY n w ddlZddlZdd � Zd d� Zdd � Zedkr]e� dS dS )z'Module containing bug report helper(s).� N)�idna)�urllib3� )�__version__)� pyopensslc C s� 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 �M/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/requests/help.py�_implementation s( � �� r c C s� zt �� t �� d�} W n ty ddd�} Y nw t� }dtji}ddi}ddi}tr1dtji}tr8dtji}ddd�}t rIt jt j jd�d�}dtt dd�i}dttdd�i}tj}d|dure|d�ndi} | || tdutdu ||||||dtid �S ) z&Generate information for a bug report.)�system�releaser r Nr )r Zopenssl_version�xr )r r � system_sslZusing_pyopensslZusing_charset_normalizerZ pyOpenSSLr �chardet�charset_normalizer�cryptographyr Zrequests)r r r �OSErrorr r r r# r"