????
Current Path : /lib/python3.9/site-packages/requests/__pycache__/ |
Current File : //lib/python3.9/site-packages/requests/__pycache__/help.cpython-39.opt-1.pyc |
a /'f� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl mZ zddl mZ W n ey� 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. ZCPythonZPyPyz%s.%s.%s�final� ZJythonZ IronPython�Unknown)�name�version) �platformZpython_implementationZpython_version�sysZpypy_version_info�major�minor�micro�releaselevel�join)�implementationZimplementation_version� r �1/usr/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}dtji}ddd�}trptjdtj j d�}dttdd�i}dtt dd�i}tj }d|dur�d| ndi}| ||tdu|||||dtid � S ) z&Generate information for a bug report.)�system�releaser r Nr )r Zopenssl_versionz%xr ) r r � system_sslZusing_pyopensslZ pyOpenSSL�urllib3�chardet�cryptography�idnaZrequests)r r r �IOErrorr r r r �OpenSSLZSSLZOPENSSL_VERSION_NUMBER�getattrr r �sslr �requests_version) Z platform_infoZimplementation_infoZurllib3_infoZchardet_infoZpyopenssl_infoZcryptography_infoZ idna_infor Zsystem_ssl_infor r r �info; sJ � � � ������r"