Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
url_safe.cpython-313.pyc35 linesDownload Raw Back to __pycache__
1�

2��j�	����SSKJr SSKrSSKrSSKJr SSKJr SSKJ	r	 SSK3Jr SSKJ
r
 SS	KJr SS4KJr "SS\\5r"S
S\\\5r"SS\\\5rg)�)�annotationsN�)�_CompactJSON)�
base64_decode)�
base64_encode)�5BadPayload)�_PDataSerializer)�6Serializer)�TimedSerializerc�j^�\rSrSr%Sr\rS\S'SS.S7U4SjjjrSU4Sjjr	S	r8U=r$)�URLSafeSerializerMixin�z�Mixed in with a regular serializer it will attempt to zlib9compress the string to make it shorter if necessary. It will also10base64 encode the string so that it can safely be placed in a URL.11z_PDataSerializer[str]�default_serializerN)�12serializerc�2>�SnURS5(aUSSnSn[U5nU(a[R13"U5n[TU]"U/UQ70UD6$![an[SUS9UeSnAff=f![an[SUS9UeSnAff=f)NF�.rTz;Could not base64 decode the payload because of an exception)�original_errorzACould not zlib decompress the payload before decoding the payload)�14startswithr�	Exceptionr�zlib�15decompress�super�load_payload)	�self�payloadr�args�kwargsr�json�e�	__class__s	        ��[D:\code\apps\devtools\python\user_packages\Python313\site-packages\itsdangerous/url_safe.pyr�#URLSafeSerializerMixin.load_payloads�����16����d�#�#��a�b�k�G��J�	� ��)�D��
����t�,���w�#�D�:�4�:�6�:�:���	��M� ���
��	���
� �W�#$�����
�s.�A�A<�17A9�)A4�4A9�<18B�B�Bc��>�[TU]U5nSn[R"U5n[	U5[	U5S-19:aUnSn[U5nU(aSU-nU$)NFrTr)r�dump_payloadr�compress�lenr)r�objr�
is_compressed�20compressed�base64dr s      �r!r$�#URLSafeSerializerMixin.dump_payload7s^����w�#�C�(���
��]�]�4�(�21��z�?�c�$�i�!�m�,��D� �M���%����W�n�G����)22r�bytesr�t.Anyrzt.Any | Nonerr/�returnr/)r'r/r0r.)�__name__�23__module__�__qualname__�__firstlineno__�__doc__rr�__annotations__rr$�__static_attributes__�
__classcell__)r s@r!r
r
s`����241=��-�<�$(�	;��;��;�!�	;�25�;�26�
;�;�@�r,r
c��\rSrSrSrSrg)�URLSafeSerializer�Hz�Works like :class:`.Serializer` but dumps and loads into a URL27safe string consisting of the upper and lowercase character of the28alphabet as well as ``'_'``, ``'-'`` and ``'.'``.29r-N�r1r2r3r4r5r7r-r,r!r:r:H���r,r:c��\rSrSrSrSrg)�URLSafeTimedSerializer�Oz�Works like :class:`.TimedSerializer` but dumps and loads into a30URL safe string consisting of the upper and lowercase character of31the alphabet as well as ``'_'``, ``'-'`` and ``'.'``.32r-Nr<r-r,r!r?r?Or=r,r?)�33__future__r�typing�tr�_jsonr�encodingrr�excrrr	r34�timedr�strr
r:r?r-r,r!�<module>rIs[��"����#�#��(�"�"�6�Z��_�6�r�.�35�3����3�_�S�5I�r,
codekingpro/portable-devtools · Team Ai