� ��^i����dZddlmZddlZddlZddlZddlZddlmZddlm Z ddl m Z dZ ddlmZn #e$rdZYnwxYw dd lmZddlZddlZn#e$r dZdZdZYnwxYwd �Zd �Zd �Zed kr e��dSdS)z'Module containing bug report helper(s).�)�print_functionN)�idna)�urllib3�)� __version__)�chardet)� pyopensslc���tj��}|dkrtj��}n�|dkrstjj�dtjj�dtjj��}tjjdkr&d� |tjjg��}n6|dkrtj��}n|dkrtj��}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�PyPy�.�final��Jython� IronPython�Unknown)�name�version) �platform�python_implementation�python_version�sys�pypy_version_info�major�minor�micro� releaselevel�join)�implementation�implementation_versions ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/requests/help.py�_implementationr" s����3�5�5�N���"�"�!)�!8�!:�!:��� �6� !� !�/2�/D�/J�/J�/J�/2�/D�/J�/J�/J�/2�/D�/J�/J�"L�� � � -�� 8� 8�%'�W�W�&��(=�(J�.�&�&� "�� �8� #� #�!)�!8�!:�!:��� �<� '� '�!)�!8�!:�!:���!*��"�/E� F� F�F�c �J� tj��tj��d�}n#t$rddd�}YnwxYwt ��}dt ji}ddi}ddi}trdtji}trdtji}ddd�}tr!tjdtj j zd�}dttdd��i}dttdd��i}tj }d|�d|zndi} ||| t dutdu||||||dt"id � S) z&Generate information for a bug report.)�system�releaserrNr)r�openssl_versionz%xr) rr� system_ssl�using_pyopenssl�using_charset_normalizer� pyOpenSSLrr�charset_normalizer� cryptographyr�requests)rr%r&�IOErrorr"rrr,r�OpenSSL�SSL�OPENSSL_VERSION_NUMBER�getattrr-r�sslr �requests_version) � platform_info�implementation_info� urllib3_info�charset_normalizer_info� chardet_info�pyopenssl_info�cryptography_info� idna_infor(�system_ssl_infos r!�infor?As���  ��o�'�'��'�)�)� � � � �� � � � �� � � � � � � ���� *�+�+���w�2�3�L�(�$�/���t�$�L��N�#,�.@�.L�"M���8�!�7�#6�7� �����N�� ��*�#�g�k�&H�H� � �� �7�<���;�;��� �7�4���3�3��I��+�J�� �(>�4�*�$�$�B��O� "�-�%�$�D�0�$+�t�O�#���5�)�� �'� � � �s �'*�<�<c�f�ttjt��dd�����dS)z)Pretty-print the bug information as JSON.T�)� sort_keys�indentN)�print�json�dumpsr?�r#r!�mainrH~s+�� �$�*�T�V�V�t�A� 6� 6� 6�7�7�7�7�7r#�__main__)�__doc__� __future__rrErrr4� pip._vendorrrrrr5r,r� ImportError�pip._vendor.urllib3.contribr r0r-r"r?rH�__name__rGr#r!�rPsr��-�-�%�%�%�%�%�%� � � � ����� � � � � � � � �������������-�-�-�-�-�-����#�#�#�#�#�#�#�������G�G�G������5�5�5�5�5�5� �N�N�N������� �����I��G��L�L�L�����G�G�G�B:�:�:�z8�8�8�  �z����D�F�F�F�F�F��s�5�?�?�A� A �A