ruạṛ
a �u:j� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl m Z zddlZW n e yn dZY n0 zddlZW n e y� dZY n0 zddlmZ W n e y� dZdZdZY n0 ddlZddlZdd� Zd d � Zdd� Zed kr�e� dS )z'Module containing bug report helper(s).� )�print_functionN� )�__version__)� 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. �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 �@/opt/bart/bart_venv/lib/python3.9/site-packages/requests/help.py�_implementation# s$ �� r c C s� zt �� t �� d�} W n ty2 ddd�} Y n0 t� }dtji}ddi}ddi}trbdtji}trpdtji}ddd�}t r�t jdt j j d�}dtt dd�i}dttdd�i}tj}d|dur�d| ndi} | || tdutdu ||||||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"