NɌ d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl m
Z ddlZn
# e
$ r dZY nw xY w ddlZn
# e
$ r dZY nw xY w ddlmZ ddlZddlZn# e
$ r dZdZdZY nw xY wd Zd Zd Zed
k r e dS dS )z'Module containing bug report helper(s). )print_functionN )__version__) pyopensslc t j } | dk rt j }n| dk rst j j dt j j dt 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 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.final Jython
IronPythonUnknown)nameversion)
platformpython_implementationpython_versionsyspypy_version_infomajorminormicroreleaseleveljoin)implementationimplementation_versions m/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/requests/help.py_implementationr # s 355N""!)!8!:!: 6 ! !/2/D/J/J/J/2/D/J/J/J/2/D/J/J"L -88%'WW&(=(J. & &"
8 # #!)!8!:!: < ' '!)!8!:!:!*"/EFFF c
J 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 dt j
j z d}dt t dd i}dt t dd i}t j }d|d|z ndi} | || t dut du ||||||dt" id S )
z&Generate information for a bug report.)systemreleaser r Nr )r openssl_versionz%xr )r r
system_sslusing_pyopensslusing_charset_normalizer pyOpenSSLurllib3chardetcharset_normalizercryptographyidnarequests)r r" r# IOErrorr 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? D s
o'''))
*++w23L($/t$L N#,.@.L"M 8!7#67 N
*#gk&HH
7<;; 7433I +J
(>4*$$BO
"-%$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 s+ $*TVVtA
6
6
677777r __main__)__doc__
__future__r rE r r r4 r- r) r r r5 r+ ImportErrorr* urllib3.contribr r0 r, r r? rH __name__rG r r