RedZddlmZddlZddlZddlZddlZddlmZddlm Z ddl m Z dZ ddlmZn #e$rdZYnwxYw dd lmZddlZddlZn#e$r dZdZdZYnwxYwd Zd Zd Zed kr edSdS)z'Module containing bug report helper(s).)print_functionN)idna)urllib3) __version__)chardet) pyopensslctj}|dkrtj}n|dkrstjjdtjjdtjj}tjjdkr&d |tjjg}n6|dkrtj}n|dkrtj}nd}||d S) aReturn 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. CPythonPyPy.finalJython IronPythonUnknown)nameversion) platformpython_implementationpython_versionsyspypy_version_infomajorminormicro releaseleveljoin)implementationimplementation_versions /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/requests/help.py_implementationr" s355N""!)!8!:!: 6 ! !/2/D/J/J/J/2/D/J/J/J/2/D/J/J"L  - 8 8%'WW&(=(J.&& " 8 # #!)!8!:!: < ' '!)!8!:!:!*"/E F FFc J tjtjd}n#t$rddd}YnwxYwt }dt ji}ddi}ddi}trdtji}trdtji}ddd}tr!tjdtj j zd}dttddi}dttddi}tj }d|d|zndi} ||| t dutdu||||||dt"id S) z&Generate information for a bug report.)systemreleaserrNr)ropenssl_versionz%xr) rr system_sslusing_pyopensslusing_charset_normalizer pyOpenSSLrrcharset_normalizer cryptographyrrequests)rr%r&IOErrorr"rrr,rOpenSSLSSLOPENSSL_VERSION_NUMBERgetattrr-rsslr requests_version) platform_infoimplementation_info urllib3_infocharset_normalizer_info chardet_infopyopenssl_infocryptography_info idna_infor(system_ssl_infos r!infor?As  o'''))          *++w23L($/t$LN#,.@.L"M8!7#67 N *#gk&HH   7<;; 7433I+J (>4*$$BO "-%$D0$+tO#5) '   s '*<<cfttjtdddS)z)Pretty-print the bug information as JSON.T) sort_keysindentN)printjsondumpsr?r#r!mainrH~s+ $*TVVtA 6 6 677777r#__main__)__doc__ __future__rrErrr4 pip._vendorrrrrr5r,r ImportErrorpip._vendor.urllib3.contribr r0r-r"r?rH__name__rGr#r!rPsr--%%%%%%  ------#######GGG555555 NNN IGLLLGGGB:::z888  zDFFFFFs5??A A A