kfdZddlmZddlZddlZddlZddlZddlZddlZddl m Z  ddl Z n #e $rdZ YnwxYw ddlZn #e $rdZYnwxYw ddlmZddlZddlZn#e $r dZdZdZYnwxYwdZdZd Zed kr edSdS) z'Module containing bug report helper(s).)print_functionN) __version__) 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 m/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/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 pyOpenSSLurllib3chardetcharset_normalizer cryptographyidnarequests)rr"r#IOErrorrr)rr+r*OpenSSLSSLOPENSSL_VERSION_NUMBERgetattrr,r-sslrrequests_version) platform_infoimplementation_info urllib3_infocharset_normalizer_info chardet_infopyopenssl_infocryptography_info idna_infor%system_ssl_infos rinfor?Ds  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 rmainrHs+ $*TVVtA 6 6 677777r __main__)__doc__ __future__rrErrr4r-r)r rr5r+ ImportErrorr*urllib3.contribrr0r,rr?rH__name__rGr rrOs--%%%%%%  ------NNNNGGG)))))) NNN IGLLLGGGB:::z888  zDFFFFFs/-77AA  A A A+*A+