UYJ d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlm Z
dZdZ ddl
mZ ddlZddlZn# e$ r dZdZdZY nw xY wd Zd Zd
Zedk r e dS dS )z'Module containing bug report helper(s). N)idna)urllib3 )__version__) pyopensslc t j } | dk rt j }n| dk rd t j j t j j t j j }t j j dk r&d
|t j j g }n6| dk rt j }n| dk rt j }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.
CPythonPyPyz{}.{}.{}final Jython
IronPythonUnknown)nameversion)platformpython_implementationpython_versionformatsyspypy_version_infomajorminormicroreleaseleveljoin)implementationimplementation_versions k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_vendor/requests/help.py_implementationr s 355N""!)!8!:!: 6 ! !!+!2!2!'!'!'"
"
-88%'WW')>)KL& &"
8 # #!)!8!:!: < ' '!)!8!:!:!*"/EFFF c
F t j t j d} n# t $ r ddd} Y nw xY wt }dt
j i}ddi}ddi}t rdt j i}t rdt j i}ddd}t r t j t j
j dd}dt t dd i}dt t dd i}t j }d||dndi} | || t dut du ||||||dt" id S )
z&Generate information for a bug report.)systemreleaser r Nr )r openssl_versionxr )r r
system_sslusing_pyopensslusing_charset_normalizer pyOpenSSLr chardetcharset_normalizercryptographyr requests)r r# r$ OSErrorr r r r, r+ OpenSSLSSLOPENSSL_VERSION_NUMBERgetattrr- r sslr requests_version)
platform_infoimplementation_infourllib3_infocharset_normalizer_infochardet_infopyopenssl_infocryptography_info idna_infor' system_ssl_infos
r infor? > s
o'''))
*++w23L($/t$L N#,.@.L"M 8!7#67 N
*")+"DHH
7<;; 7433I +J z7MZ"3"3"3SUVO "-%$D0$+tO#5)'
s '* <<c f t t j t dd dS )z)Pretty-print the bug information as JSON.T ) sort_keysindentN)printjsondumpsr? r! r mainrH y s+ $*TVVtA
6
6
677777r! __main__)__doc__rE r r4 r pip._vendorr r r r r5 r, r+ pip._vendor.urllib3.contribr r- r0 ImportErrorr r? rH __name__rG r! r