
    i                         d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlm	Z
 dZdZ	 ddlmZ ddlZddlZd Zd	 Zd
 Zedk(  r e        yy# e$ r	 dZdZdZY $w xY w)z'Module containing bug report helper(s).    N)idna)urllib3   )__version__)	pyopensslc                     t        j                         } | dk(  rt        j                         }n| dk(  rt        j                  }|j
                   d|j                   d|j                   }t        j                  j                  dk7  rbdj                  |t        j                  j                  g      }n6| dk(  rt        j                         }n| dk(  rt        j                         }nd}| |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.
    CPythonPyPy.final Jython
IronPythonUnknown)nameversion)
platformpython_implementationpython_versionsyspypy_version_infomajorminormicroreleaseleveljoin)implementationimplementation_versionpypys      L/root/searxng-venv/lib/python3.12/site-packages/pip/_vendor/requests/help.py_implementationr!      s     335N"!)!8!8!:	6	!$$$(JJ<qAdjj\!J  --8%'WW')>)>)K)KL&" 
8	#!)!8!8!:	<	'!)!8!8!:!*"/EFF    c                  X   	 t        j                         t        j                         d} t	               }dt
        j                  i}ddi}ddi}t        rdt        j                  i}t        rdt        j                  i}ddd}t        r-t        j                  t        j                  j                  dd}dt        t        dd      i}dt        t        dd      i}t        j                  }d||dndi}	| ||	t         dut        du ||||||dt"        id	S # t        $ r ddd} Y w xY w)
z&Generate information for a bug report.)systemreleaser   r   Nr   )r   openssl_versionxr   )r   r   
system_sslusing_pyopensslusing_charset_normalizer	pyOpenSSLr   chardetcharset_normalizercryptographyr   requests)r   r$   r%   OSErrorr!   r   r   r-   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@   ;   sd   	
oo''')
 *+w223L($/t$L#,.@.L.L"M!7#6#67 N **")++"D"DQ!G

 	7<; 	743I ++J z7MZNSUVO "-%$D0$+tO#5)'
 E  
 

s   )D D)(D)c                  V    t        t        j                  t               dd             y)z)Pretty-print the bug information as JSON.T   )	sort_keysindentN)printjsondumpsr@    r"   r    mainrI   v   s    	$**TVtA
67r"   __main__)__doc__rF   r   r5   r   pip._vendorr   r   r   r   r6   r-   r,   pip._vendor.urllib3.contribr   r.   r1   ImportErrorr!   r@   rI   __name__rH   r"   r    <module>rP      s    -   
 
   - 
5 G@8v8
 zF S  IGLs   A AA