Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
web_exceptions.cpython-313.pyc46 linesDownload Raw Back to __pycache__
1�

2��j�*��l�SSKrSSKJrJrJrJrJrJr SSKJ	r	 SSK3JrJr SSK
Jr Sr"SS	\5r"S4S\\5r"SS
\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"S S!\5r"S"S#\5r"S$S%\5r "S&S'\5r!"S(S)\5r""S*S+\5r#"S,S-\5r$"S.S/\5r%"S0S1\5r&"S2S3\5r'"S4S5\'5r("S6S7\'5r)"S8S9\'5r*"S:S;\'5r+"S<S=\'5r,"S>S?\'5r-"S@SA\'5r."SBSC\'5r/"SDSE\'5r0"SFSG\'5r1"SHSI\'5r2"SJSK\'5r3"SLSM\'5r4"SNSO\'5r5"SPSQ\'5r6"SRSS\'5r7"STSU\'5r8"SVSW\'5r9"SXSY\'5r:"SZS[\'5r;"S\S]\'5r<"S^S_\'5r="S`Sa\'5r>"SbSc\'5r?"SdSe\'5r@"SfSg\'5rA"ShSi\5rB"SjSk\B5rC"SlSm\B5rD"SnSo\B5rE"SpSq\B5rF"SrSs\B5rG"StSu\B5rH"SvSw\B5rI"SxSy\B5rJ"SzS{\B5rK"S|S}\B5rLg)~�N)�Any�Dict�Iterable�List�Optional�Set)�URL�)�LooseHeaders�StrOrURL)�Response):�
HTTPException�	HTTPError�HTTPRedirection�HTTPSuccessful�HTTPOk�HTTPCreated�HTTPAccepted�HTTPNonAuthoritativeInformation�
HTTPNoContent�HTTPResetContent�HTTPPartialContent�HTTPMove�HTTPMultipleChoices�HTTPMovedPermanently�	HTTPFound�HTTPSeeOther�HTTPNotModified�HTTPUseProxy�HTTPTemporaryRedirect�HTTPPermanentRedirect�HTTPClientError�HTTPBadRequest�HTTPUnauthorized�HTTPPaymentRequired�
HTTPForbidden�HTTPNotFound�HTTPMethodNotAllowed�HTTPNotAcceptable�HTTPProxyAuthenticationRequired�HTTPRequestTimeout�HTTPConflict�HTTPGone�HTTPLengthRequired�HTTPPreconditionFailed�HTTPRequestEntityTooLarge�HTTPRequestURITooLong�HTTPUnsupportedMediaType�HTTPRequestRangeNotSatisfiable�HTTPExpectationFailed�HTTPMisdirectedRequest�HTTPUnprocessableEntity�HTTPFailedDependency�HTTPUpgradeRequired�HTTPPreconditionRequired�HTTPTooManyRequests�HTTPRequestHeaderFieldsTooLarge�HTTPUnavailableForLegalReasons�HTTPServerError�HTTPInternalServerError�HTTPNotImplemented�HTTPBadGateway�HTTPServiceUnavailable�HTTPGatewayTimeout�HTTPVersionNotSupported�HTTPVariantAlsoNegotiates�HTTPInsufficientStorage�HTTPNotExtended�!HTTPNetworkAuthenticationRequiredc��\rSrSrSrSrg)�NotAppKeyWarning�Gz-Warning when not using AppKey in Application.�N��__name__�5__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__rK��\D:\code\apps\devtools\python\user_packages\Python313\site-packages\aiohttp/web_exceptions.pyrIrIGs��7rSrIc
�x�\rSrSrSrSrSrSSSSSS.S\\S\\	S	\6S7\\	S\\	SS4S
jjrS\4Sjr
Srg)r�P�����FTN��headers�reason�body�text�content_typerYrZr[r\r]�returnc8�z�Ub"S[5 UbSU;dSU;a[S5e[R9"UURUUUUUS9 [RXR5 URc3UR(d!URSUR3Ulggg)Nz3body argument is deprecated for http web exceptions�
�10zReason cannot contain \r or \n)�statusrYrZr[r\r]z: )
�warnings�warn�DeprecationWarning�11ValueErrorr
�__init__�status_code�	ExceptionrZr[�12empty_bodyrbr\)�selfrYrZr[r\r]s      rTrg�HTTPException.__init__Zs������M�M�E�"�
���4�6�>�T�V�^��?�@�@������#�#�����%�	13�	���4���-��9�9��T�_�_��;�;�-�r�$�+�+��7�D�I�&5�rSc��g)NTrK�rks rT�__bool__�HTTPException.__bool__ws��rS)r\)rMrNrOrPrhrj�__http_exception__rr�strrrg�boolrorRrKrSrTrrPs���14�K��J���15+/� $��"�&*�8��,�'�8���
�	8�16�8��s�m�
8��s�m�8�17�8�:�$�rSrc��\rSrSrSrSrg)r�{zABase class for exceptions with status codes in the 400s and 500s.rKNrLrKrSrTrr{s��KrSrc��\rSrSrSrSrg)r�z8Base class for exceptions with status codes in the 300s.rKNrLrKrSrTrr���BrSrc��\rSrSrSrSrg)r�z8Base class for exceptions with status codes in the 200s.rKNrLrKrSrTrr�rxrSrc��\rSrSrSrSrg)r���rKN�rMrNrOrPrhrRrKrSrTrr�����KrSrc��\rSrSrSrSrg)r���rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrg)r���rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrg)r���rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrSrg)r���TrKN�rMrNrOrPrhrjrRrKrSrTrr�����K��JrSrc��\rSrSrSrSrSrg)r���TrKNr�rKrSrTrr�r�rSrc��\rSrSrSrSrg)r���rKNr~rKrSrTrr�rrSrc�p^�\rSrSrSSSSSS.S\S\\S\\S\S\\S	\\S18S4U4Sjjjr	Sr19U=r$)
r�NrX�locationrYrZr[r\r]r^c�>�U(d[S5e[TU]	UUUUUS9 [[	U55UR20S'Xlg)Nz.HTTP redirects need a location to redirect to.rX�Location)rf�superrgrrr	rYr�)rkr�rYrZr[r\r]�	__class__s       �rTrg�HTTPMove.__init__�sS�����M�N�N�
�������%�	�	21�$'�s�8�}�#5����Z� � �
rS)r�)rMrNrOrPrrrrrrrgrR�
__classcell__�r�s@rTrr�ss���22+/� $��"�&*�!��!��,�'�	!�23��
�!��
!��s�m�!��s�m�!�24�!�!rSrc��\rSrSrSrSrg)r��i,rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrg)r��i-rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrg)rr�i.rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrg)r���/rKNr~rKrSrTrr�rrSrc��\rSrSrSrSrSrg)r��i0TrKNr�rKrSrTrr�s���K��JrSrc��\rSrSrSrSrg)r��i1rKNr~rKrSrTrr�s���KrSrc��\rSrSrSrSrg)r ���3rKNr~rKrSrTr r �rrSr c��\rSrSrSrSrg)r!��i4rKNr~rKrSrTr!r!�rrSr!c��\rSrSrSrg)r"��rKN�rMrNrOrPrRrKrSrTr"r"����rSr"c��\rSrSrSrSrg)r#��i�rKNr~rKrSrTr#r#�rrSr#c��\rSrSrSrSrg)r$��i�rKNr~rKrSrTr$r$�rrSr$c��\rSrSrSrSrg)r%��i�rKNr~rKrSrTr%r%�rrSr%c��\rSrSrSrSrg)r&��i�rKNr~rKrSrTr&r&�rrSr&c��\rSrSrSrSrg)r'�i�rKNr~rKrSrTr'r'rrSr'c�~^�\rSrSrSrSSSSSS.S\S\\S\\S\\S	\	S25\\S\\SS4U4S
jjjr26SrU=r$)r(ii�NrX�method�allowed_methodsrYrZr[r\r]r^c��>�SR[U55n[T	U]
UUUUUS9 X�RS'[U5UlUR5Ulg)N�,rX�Allow)	�join�sortedr�rgrY�setr��upperr�)27rkr�r�rYrZr[r\r]�allowr�s28         �rTrg�HTTPMethodNotAllowed.__init__sa��������0�1��
�������%�	�	29�!&���W��),�_�)=����l�l�n��rS)r�r�)
rMrNrOrPrhrrrrrrrgrRr�r�s@rTr(r(s�����K�+/� $��"�&*�%��%�"�#��%�30�,�'�%���
�
%��%��s�m�%��s�m�%�31�%�%rSr(c��\rSrSrSrSrg)r)ii�rKNr~rKrSrTr)r)rrSr)c��\rSrSrSrSrg)r*i#i�rKNr~rKrSrTr*r*#rrSr*c��\rSrSrSrSrg)r+i'i�rKNr~rKrSrTr+r+'rrSr+c��\rSrSrSrSrg)r,i+i�rKNr~rKrSrTr,r,+rrSr,c��\rSrSrSrSrg)r-r�i�rKNr~rKrSrTr-r-/rrSr-c��\rSrSrSrSrg)r.r�i�rKNr~rKrSrTr.r.3rrSr.c��\rSrSrSrSrg)r/i7i�rKNr~rKrSrTr/r/7rrSr/c�@^�\rSrSrSrS\S\S\SS4U4SjjrS	rU=r	$)32r0i;��max_size�actual_size�kwargsr^Nc�h>�URSSRX55 [TU]"S0UD6 g)Nr\z:Maximum request body size {} exceeded, actual body size {}rK)�33setdefault�formatr�rg)rkr�r�r�r�s    �rTrg�"HTTPRequestEntityTooLarge.__init__>s5�������
"�"(�&��"?�	34�35	���"�6�"rSrK)36rMrNrOrPrh�floatrrgrRr�r�s@rTr0r0;s.����K�#��#�U�#�c�#�d�#�#rSr0c��\rSrSrSrSrg)r1iGi�rKNr~rKrSrTr1r1GrrSr1c��\rSrSrSrSrg)r2iKi�rKNr~rKrSrTr2r2KrrSr2c��\rSrSrSrSrg)r3iOi�rKNr~rKrSrTr3r3OrrSr3c��\rSrSrSrSrg)r4iS�rKNr~rKrSrTr4r4SrrSr4c��\rSrSrSrSrg)r5iW�rKNr~rKrSrTr5r5WrrSr5c��\rSrSrSrSrg)r6i[i�rKNr~rKrSrTr6r6[rrSr6c��\rSrSrSrSrg)r7i_i�rKNr~rKrSrTr7r7_rrSr7c��\rSrSrSrSrg)r8ici�rKNr~rKrSrTr8r8crrSr8c��\rSrSrSrSrg)r9igi�rKNr~rKrSrTr9r9grrSr9c��\rSrSrSrSrg)r:ik�rKNr~rKrSrTr:r:krrSr:c��\rSrSrSrSrg)r;ioi�rKNr~rKrSrTr;r;orrSr;c�^�\rSrSrSrSSSSSS.S\\S\\S\\S\	S	\\S37\\SS4U4Sjjjr38\S\\4S
j5r
SrU=r$)r<isi�NrX�linkrYrZr[r\r]r^c�>�[TU]UUUUUS9 SUlU(a7[U5UlS[	UR5S3UR39S'gg)NrX�<z>; rel="blocked-by"�Link)r�rg�_linkr	rrrY)rkr�rYrZr[r\r]r�s       �rTrg�'HTTPUnavailableForLegalReasons.__init__vsc���	�������%�	�	40���41���T��D�J�%&�s�4�:�:��&7�7J�#K�D�L�L�� �rSc��UR$)N�r�rns rTr��#HTTPUnavailableForLegalReasons.link�s���z�z�rSr�)rMrNrOrPrhrrrrrrrg�propertyr	r�rRr�r�s@rTr<r<ss�����K�+/� $��"�&*�L��x� �L��,�'�	L�42��
�L��
L��s�m�L��s�m�L�43�L�L�,��h�s�m���rSr<c��\rSrSrSrg)r=r�rKNr�rKrSrTr=r=�r�rSr=c��\rSrSrSrSrg)r>r�i�rKNr~rKrSrTr>r>�rrSr>c��\rSrSrSrSrg)r?r�i�rKNr~rKrSrTr?r?�rrSr?c��\rSrSrSrSrg)r@i�i�rKNr~rKrSrTr@r@�rrSr@c��\rSrSrSrSrg)rAr�i�rKNr~rKrSrTrArA�rrSrAc��\rSrSrSrSrg)rBi�i�rKNr~rKrSrTrBrB�rrSrBc��\rSrSrSrSrg)rCi�i�rKNr~rKrSrTrCrC�rrSrCc��\rSrSrSrSrg)rDi�i�rKNr~rKrSrTrDrD�rrSrDc��\rSrSrSrSrg)rEi�i�rKNr~rKrSrTrErE�rrSrEc��\rSrSrSrSrg)rFi�i�rKNr~rKrSrTrFrF�rrSrFc��\rSrSrSrSrg)rGi�i�rKNr~rKrSrTrGrG�rrSrG)Mrc�typingrrrrrr�yarlr	�typedefsrr�web_responser
�__all__�UserWarningrIrirrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrKrSrT�<module>rs����;�;��,�"�;��|8�{�8�(�H�i�(�VL�
�L�C�m�C�C�]�C��^���.���>���n���N��44�~��45���!��!�0�(���8������8���o���8��46�H���H��	�i�	��_������/���O���?��%�?�%�6����o������?���������_��	#��	#��O������_���O���_���o���?���/������/���o���_��T	�i�	��o������_���_������o������o���o����rS
codekingpro/portable-devtools · Team Ai