
º|j\  ã            Š   @   sÚ  d  a  d d l m Z d dÄ d dÅ d dÆ d	 dÇ d dÈ d dÉ d dÊ d dË d dÌ d dÍ d dÎ d" dÏ d% dÐ d* dÑ d, dÒ d. dÓ d0 dÔ d4 dÕ d6 dÖ d9 d× d; dØ d= dÙ d? dÚ dC dÛ dG dÜ dJ dÝ dL dÞ dO dß dQ dà dT dá dW dâ dY dã d] dä d` då db dæ dd dç df dè di dé dk dê dm dë dq dì du dí dw dî d{ dï d} dð d€ dñ d‚ dò d… dó dˆ dô d‹ dõ d� dö d� d÷ d“ dø d– dù d™ dú dœ dû dŸ dü d¡ dý d¦ dþ d¨ dÿ dª d d­ dd¯ dd² dd´ dd¶ dd¹ dd» diD Z e d¿ dÀ ƒ Z dÁ dÂ „  Z e ƒ  dÃ S(  a  
The ``codes`` object defines a mapping from common names for HTTP statuses
to their numerical codes, accessible either as attributes or as dictionary
items.

Example::

    >>> import requests
    >>> requests.codes['temporary_redirect']
    307
    >>> requests.codes.teapot
    418
    >>> requests.codes['\o/']
    200

Some codes have multiple names, and both upper- and lower-case versions of
the names are allowed. For example, ``codes.ok``, ``codes.OK``, and
``codes.okay`` all correspond to the HTTP status code 200.
é   )Ú
LookupDictéd   Úcontinueée   Úswitching_protocolséf   Ú
processingég   Ú
checkpointéz   Úuri_too_longÚrequest_uri_too_longéÈ   ÚokÚokayÚall_okÚall_okayÚall_goodú\o/õ   âœ“éÉ   ÚcreatedéÊ   ÚacceptedéË   Únon_authoritative_infoÚnon_authoritative_informationéÌ   Ú
no_contentéÍ   Úreset_contentÚresetéÎ   Úpartial_contentÚpartialéÏ   Úmulti_statusÚmultiple_statusÚmulti_statiÚmultiple_statiéÐ   Úalready_reportedéâ   Úim_usedi,  Úmultiple_choicesi-  Úmoved_permanentlyÚmovedú\o-i.  Úfoundi/  Ú	see_otherÚotheri0  Únot_modifiedi1  Ú	use_proxyi2  Úswitch_proxyi3  Útemporary_redirectÚtemporary_movedÚ	temporaryi4  Úpermanent_redirectÚresume_incompleteÚresumei�  Úbad_requestÚbadi‘  Úunauthorizedi’  Úpayment_requiredÚpaymenti“  Ú	forbiddeni”  Ú	not_foundú-o-i•  Úmethod_not_allowedÚnot_allowedi–  Únot_acceptablei—  Úproxy_authentication_requiredÚ
proxy_authÚproxy_authenticationi˜  Úrequest_timeoutÚtimeouti™  Úconflictiš  Úgonei›  Úlength_requirediœ  Úprecondition_failedÚpreconditioni�  Úrequest_entity_too_largeiž  Úrequest_uri_too_largeiŸ  Úunsupported_media_typeÚunsupported_mediaÚ
media_typei   Úrequested_range_not_satisfiableÚrequested_rangeÚrange_not_satisfiablei¡  Úexpectation_failedi¢  Úim_a_teapotÚteapotÚi_am_a_teapoti¥  Úmisdirected_requesti¦  Úunprocessable_entityÚunprocessablei§  Úlockedi¨  Úfailed_dependencyÚ
dependencyi©  Úunordered_collectionÚ	unorderediª  Úupgrade_requiredÚupgradei¬  Úprecondition_requiredi­  Útoo_many_requestsÚtoo_manyi¯  Úheader_fields_too_largeÚfields_too_largei¼  Úno_responseÚnoneiÁ  Ú
retry_withÚretryiÂ  Ú$blocked_by_windows_parental_controlsÚparental_controlsiÃ  Úunavailable_for_legal_reasonsÚlegal_reasonsió  Úclient_closed_requestiô  Úinternal_server_errorÚserver_errorú/o\õ   âœ—iõ  Únot_implementediö  Úbad_gatewayi÷  Úservice_unavailableÚunavailableiø  Úgateway_timeoutiù  Úhttp_version_not_supportedÚhttp_versioniú  Úvariant_also_negotiatesiû  Úinsufficient_storageiý  Úbandwidth_limit_exceededÚ	bandwidthiþ  Únot_extendediÿ  Únetwork_authentication_requiredÚnetwork_authÚnetwork_authenticationÚnameÚstatus_codesc                 sµ   x` t  j ƒ  D]R \ }  } xC | D]; } t t | |  ƒ | j d ƒ s  t t | j ƒ  |  ƒ q  Wq Wd d „  ‰  t d  k	 r« t d d j ‡  f d d †  t t  ƒ Dƒ ƒ n d  a d  S)	Nú\ú/c             S   s.   d j  d d „  t |  Dƒ ƒ } d |  | f S)Nz, c             s   s   |  ] } d  | Vq d S)z``%s``N© )Ú.0ÚnrŽ   rŽ   ú9/tmp/pip-build-1hwfuv5s/requests/requests/status_codes.pyú	<genexpr>s   s    z%_init.<locals>.doc.<locals>.<genexpr>z* %d: %s)ÚjoinÚ_codes)ÚcodeÚnamesrŽ   rŽ   r‘   Údocr   s     z_init.<locals>.docÚ
c             3   s   |  ] } ˆ  | ƒ Vq d  S)NrŽ   )r�   r•   )r—   rŽ   r‘   r’   x   s    z_init.<locals>.<genexpr>)rŒ   r�   )	r”   ÚitemsÚsetattrÚcodesÚ
startswithÚupperÚ__doc__r“   Úsorted)r•   ÚtitlesÚtitlerŽ   )r—   r‘   Ú_initk   s    r¢   N)r   )r   )r   )r
   )r   r   )r   r   r   r   r   r   r   )r   )r   )r   r   )r   )r    r!   )r#   r$   )r&   r'   r(   r)   )r+   )r-   )r.   )r/   r0   r1   )r2   )r3   r4   )r5   )r6   )r7   )r8   r9   r:   )r;   r<   r=   )r>   r?   )r@   )rA   rB   )rC   )rD   rE   )rF   rG   )rH   )rI   rJ   rK   )rL   rM   )rN   )rO   )rP   )rQ   rR   )rS   )rT   )rU   rV   rW   )rX   rY   rZ   )r[   )r\   r]   r^   )r_   )r`   ra   )rb   )rc   rd   )re   rf   )rg   rh   )ri   rR   )rj   rk   )rl   rm   )rn   ro   )rp   rq   )rr   rs   )rt   ru   )rv   )rw   rx   ry   rz   )r{   )r|   )r}   r~   )r   )r€   r�   )r‚   )rƒ   )r„   r…   )r†   )r‡   rˆ   r‰   )rž   Ú
structuresr   r”   r›   r¢   rŽ   rŽ   rŽ   r‘   Ú<module>   s’   