
    nbi5              
         U d Z ddlmZ ddlZddlZ	 ddlZn# e$ r dZY nw xY wddlZddlZddlm	Z	 ddl
Z
ddlZ	 ddlZn# e$ r dZY nw xY wddlZddlZddlmZmZmZ ddlmZ ddlmZ ed	u rddlZ	 ddlmZ n# eef$ r dZY n
w xY wddlZdZ	 ddlZn# e$ r dZY nw xY w	 ddlZn# e$ r dZY nw xY w	 dd
lmZ n# e$ r dZY nw xY w	 ddl Z n# e$ r dZ Y nw xY w e!ed          o ej"                    du Z#de$d<   d Z%d Z& e            Z'ddZ(eej        eej        ndej        ej        e
j        ej        eej        nde e j        ndd	Z)ddZ*e+dk    r e*             dS dS )z'Module containing bug report helper(s).    )annotationsN)JSONDecodeError   )	HTTPErrorRequestExceptionSession)__version__)HAS_LEGACY_URLLIB3T)verify_is_gil_enabledFbool_IS_GIL_DISABLEDc                    t          j                    } | dk    rt          j                    }n| dk    rst          j        j         dt          j        j         dt          j        j         }t          j        j        dk    r&d	                    |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_versions     ]/var/www/html/mdtn/previsions/meteo_cartes/venv/lib/python3.11/site-packages/niquests/help.py_implementationr'   D   s     355N""!)!8!:!:	6	!	!$* . .%+. .%+. . 	
  -88%'WW')>)KL& &" 
8	#	#!)!8!:!:	<	'	'!)!8!:!:!*"/EFFF    c                 t   	 t          j                    t          j                    d} n# t          $ r ddd} Y nw xY wt	                      }t
          j        t          d}dt          j        i}dt          t          dd          i}t          "t          j        }||dndt          j        d	}nddd	}| ||t           |||dt          it           dut           t           j        ndd
dt"          j        idt$          j        idt&          j        idt(          duit*          dut*          t*          j        ndddS )z&Generate information for a bug report.)systemreleaser   )r   cohabitation_versionr   r	   zN/ANx)r   r   )enabledqh3jh2h11r.   )r.   wsproto)r   r$   
system_sslgilzurllib3.futurecharset_normalizeridnaniquestshttp3http2http1wassimaocsp	websocket)r   r*   r+   OSErrorr'   urllib3r	   __legacy_urllib3_version__r5   getattrr6   sslOPENSSL_VERSION_NUMBEROPENSSL_VERSIONr   niquests_versionr/   r0   r1   r;   ocsp_verifyr2   )platform_infoimplementation_infourllib3_infocharset_normalizer_info	idna_infor3   system_ssl_infos          r&   inforM   g   s   	
o'''))
 
  
 
 
 
 

 *++& : L
  )*<*HI 	7466I /
 -7,B*((('
 

 ',U;; "-%##&5'
 $&)o3??4
 

 3?
 3?
 w*
 Kt34d*.5.Aw**t
 
3  s   '* <<package_namestractual_versionreturnNonec                   	 t                               d|  d          }|                                                                }t	          |t
                    rUd|v rSd|d         v rK|d         d         |k    r;t          j        d|  d| d|d         d          d|  d		t                     d
S d
S d
S d
S d
S # t          t          t          f$ r Y d
S w xY w)z9
    Small and concise utility to check for updates.
    zhttps://pypi.org/pypi/z/jsonrM   r   zYou are using  z and PyPI yield version (zk) as the stable one. We invite you to install this version as soon as possible. Run `python -m pip install z -U`.N)pypi_sessiongetraise_for_statusjson
isinstancedictwarningswarnUserWarningr   r   r   )rN   rP   responsepackage_infos       r&   check_updater`      sA   ##$P\$P$P$PQQ00227799lD)) 	f.D.DVbciVjIjIjF#I..@@F\ F FN F F+7+?	+JF F 3?F F F      	 	.D.DIjIj@@ oy9   s   B,B8 8CC)	r7   zurllib3-futurer/   r0   r1   zcharset-normalizerr;   r6   r2   c                    t                                           D ]\  } }|t          | |           t          t	          j        dt                     t          t          j	        t                      dd                     dS )z)Pretty-print the bug information as JSON.Nae  urllib3-future is installed alongside (legacy) urllib3. This may cause compatibility issues. Some (Requests) 3rd parties may be bound to urllib3, therefor the plugins may wrongfully invoke urllib3 (legacy) instead of urllib3-future. To remediate this, run `python -m pip uninstall -y urllib3 urllib3-future`, then run `python -m pip install urllib3-future`.T   )	sort_keysindent)PACKAGE_TO_CHECK_FOR_UPGRADEitemsr`   r@   r[   r\   r]   printrX   dumpsrM   )packagerP   s     r&   mainrj      s    #?#E#E#G#G . .!Wn----!-t 	
 	
 	
 
$*TVVtA
6
6
677777r(   __main__)rN   rO   rP   rO   rQ   rR   )rQ   rR   ),__doc__
__future__r   rX   r   rB   ImportErrorr   r[   r   r5   r1   r6   r0   r;   r   r   r   r   r	   rE   _compatr
   urllib3_futurer?   r@   AttributeErrorr/   certifiextensions.revocation._ocspr   rF   r2   hasattrr   r   __annotations__r'   rM   rU   r`   re   rj   __name__ r(   r&   <module>rx      s   - - - " " " " " "  JJJJ   
CCC 


                  



KKKK   DDD 


  2 2 2 2 2 2 2 2 2 2 - - - - - - ' ' ' ' ' '$$$$*EEEEEEE( * * *%)"""* NNN!%JJJJ   
CCCNNNN   GGGBBBBBBB   KKKNNNN   GGG !&788[=PS=P=R=RV[=[  [ [ [ [ G  G  GF@ @ @F wyy   , !)!o3??4??,8" $ 0Dd&-&9w""t
  
  8 8 8 8& zDFFFFF sw    ""A A
A5A< <	BBB B! B!%B* *B43B48B? ?C	C	C CC