403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/bzr/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/bzr/__pycache__/chk_serializer.cpython-313.pyc
�

p��g�'���SrSSKrSSKJr \R"\"5S5 SSKJr SSKJr SS	KJ	r	 \R4S
jrSr"SS
5r
"SS\	R5r\"SS5r"SS\
\5r\"SS5rg)z2Serializer object for CHK based inventory storage.�N�)�lazy_importzD
from breezy.bzr import (
    serializer,
    xml_serializer,
    )
)�
cache_utf8)�revision�)�
serializerc	��UR5VVs0sHup#U"U5SU"US5S_M snn$s snnf)Nr�surrogateescape)�items)�props�_decode�key�values    �;/usr/lib/python3/dist-packages/breezy/bzr/chk_serializer.py�_validate_propertiesr%sK��
 �+�+�-��'�J�C�	���Q����(9�:�1�=�=�'����s�":c�.�US:wa[SU<35eg)N�
z2Format number was not recognized, expected 10 got )�
ValueError)rs r�
_is_format_10r.s����{��M�e�Y�W�X�X�
�c��\rSrSrSrSrS\\4S\\	R4S\S4S\\4S\S4S	\S4S
\S4S\\	R4S\
\4S
.	rSrSrSrSrSrg)�BEncodeRevisionSerializer1�4z0Simple revision serializer based around bencode.FN�	committer�timezone�	timestamp�revision_id�
parent_ids�inventory_sha1�message�
properties)	�format�	committer�timezone�	timestamp�revision-id�
parent-ids�inventory-sha1�message�
propertiesc
�.�[RnSSU"UR5S4/nURbUR	SUR45 0nUR
R
5HupVU"US5SXB"U5S'M UR	SU45 URSSUR-4S	UR4S
UR4SUR4SU"UR5S4/5 [R"U5$)
N)r"rr#rr$r
r*r%s%.3fr&r'r(r))r�_utf8_encoderr�appendr!r�extendrrrrr �bencode)�self�rev�encode_utf8�ret�revpropsrrs       r�write_revision_to_string�3BEncodeRevisionSerializer1.write_revision_to_stringKs�� �-�-��

�
�;�s�}�}�5�a�8�9�
���<�<�#��J�J��S�\�\�2�3����.�.�.�.�0�J�C�,7��?P�,Q�RS�,T�H�[��%�a�(�)�1��
�
�M�8�,�-��
�
��w����6�7�����1�����/�"�C�$6�$6�7��[����5�a�8�9�
�	
����s�#�#rc�B�URU5RS5$)NT)r5�
splitlines)r0r1s  r�write_revision_to_lines�2BEncodeRevisionSerializer1.write_revision_to_linesgs���,�,�S�1�<�<�T�B�Brc
�B�[R"U5n[U[5(d[	S5eUR
nSS0nUHNupVX5upxn	URULa$[	SRXX[U555eU	bU	"U5nXdU'MP [U5[U5:waLUR5VVV
s/sHunun o�U;dMUPM nnnn
[	SRX�55eUS	[R"S0UD6nU$s sn
nnf)Nzinvalid revision textrz:key {} did not conform to the expected type {}, but was {}z5Revision text was missing expected keys {}. text {!r}�)
r/�bdecode�
isinstance�listr�_schema�	__class__�format�type�lenr�
_mod_revision�Revision)
r0�textr3�schema�bitsrr�var_name�
expected_type�	validator�_�missingr1s
             r�read_revision_from_string�4BEncodeRevisionSerializer1.read_revision_from_stringjs-���o�o�d�#���#�t�$�$��4�5�5������D�!���J�C�28��.�H�Y����m�3� �P�W�W��D��K����
�$�!�%�(��"��N���t�9��F��#�17�����1?�-��-�h��1�SW�CW���
���G�N�N����
�

��J��$�$�,�t�,���
��s�D�Dc�@�URUR55$�N)rO�read)r0�fs  r�
read_revision�(BEncodeRevisionSerializer1.read_revision�s���-�-�a�f�f�h�7�7rr<)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�squashes_xml_invalid_characters�intr�bytesr�decode�floatr?�dictrr@r5r9rOrU�__static_attributes__r<rrrr4s���:�&+�#��#�}�-�"�E�:�+<�+<�=� �#�t�,�"�E�5�1�&��t�4�$�d�D�1�,�e�T�:���z�'8�'8�9�$�d�,@�A�
�G�$�8C�&�P8rrc�j�\rSrSrSrSrSrSr1SkrSr	SSjr
SS	jrSS
jrSr
SrSS
jrSrg)�
CHKSerializer�z7A CHKInventory based serializer with 'plain' behaviour.�9NF>�file�symlink�	directory�tree-referencec��XlX lgrR��maximum_size�search_key_name)r0�	node_sizerns   r�__init__�CHKSerializer.__init__�s��%��.�rc�h�[RUUR[RUU5nU$)zConstruct from XML Element.)�xml_serializer�unpack_inventory_flat�
format_num�unpack_inventory_entry)r0�eltr�entry_cache�return_from_cache�invs      r�_unpack_inventory�CHKSerializer._unpack_inventory�s4���2�2���O�O��1�1���
���
rc��UR[RU5UUUS9$![Ran[R
"U5UeSnAff=f)ajRead xml_string into an inventory object.

:param xml_string: The xml to read.
:param revision_id: If not-None, the expected revision id of the
    inventory.
:param entry_cache: An optional cache of InventoryEntry objects. If
    supplied we will look up entries via (file_id, revision_id) which
    should map to a valid InventoryEntry (File/Directory/etc) object.
:param return_from_cache: Return entries directly from the cache,
    rather than copying them first. This is only safe if the caller
    promises not to mutate the returned inventory entries, but it can
    make some operations significantly faster.
)rxryN)r{rs�fromstringlist�
ParseErrorr�UnexpectedInventoryFormat)r0�	xml_linesrrxry�es      r�read_inventory_from_lines�'CHKSerializer.read_inventory_from_lines�sd�� 	A��)�)��-�-�i�8��'�"3�	*��
���(�(�	A��6�6�q�9�q�@��	A�s�$'�A�A�Ac���URURU5SS9UR5 $!UR5 f=f![Ran[
R"U5UeSnAff=f)z*Read an inventory from a file-like object.N)r)r{�
_read_element�closersrrr�)r0rTrr�s    r�read_inventory�CHKSerializer.read_inventory�si��	A�
��-�-�d�.@�.@��.C�QU�-�V����	�����	���(�(�	A��6�6�q�9�q�@��	A�s&�2�A�A�A�A7�A2�2A7c�&�URUS5$�z2Return a list of lines with the encoded inventory.N��write_inventory�r0rzs  r�write_inventory_to_lines�&CHKSerializer.write_inventory_to_lines�����#�#�C��.�.rc�&�URUS5$r�r�r�s  r�write_inventory_to_chunks�'CHKSerializer.write_inventory_to_chunks�r�rc�B�/nURnURb2SRS[R	UR5S/5nOSnU"SUR
U4-5 U"S[R	URR5[R	URR5[R	URR54-5 [RUUSURUS9 UbURU5 U$)a)Write inventory to a file.

:param inv: the inventory to write.
:param f: the file to write. (May be None if the lines are the desired
    output).
:param working: If True skip history data - text_sha1, text_size,
    reference_revision, symlink_target.
:return: The inventory as a list of lines.
Nrs revision_id="�"s<inventory format="%s"%s>
s3<directory file_id="%s" name="%s" revision="%s" />
)�root_id�supported_kinds�working)
r-r�joinrs�encode_and_escaperu�root�file_id�namer�serialize_inventory_flatr��
writelines)r0rzrTr��outputr-�revids       rr��CHKSerializer.write_inventory�s���������?�?�&��H�H�%�"�4�4�S�_�_�E����E��E��-����%�0H�H�I��C��0�0����1A�1A�B��0�0������?��0�0����1B�1B�C��
�	
�	�/�/���� �0�0��	0�	
�
�=�
�L�L�� ��
rrl)NNFrR)F)rWrXrYrZr[ru�revision_format_num�support_altered_by_hackr�rpr{r�r�r�r�r�rbr<rrrdrd�sN��A��J���#��H�O�/�
JO��PU�A�4A�/�/�(rrdishash-255-wayc��\rSrSrSrSrSrg)�CHKBEncodeSerializeri	zCA CHKInventory and BEncode based serializer with 'plain' behaviour.s10r<N)rWrXrYrZr[rurbr<rrr�r�	s
��M��Jrr�)r[�fastbencoder/�r�globalsrrrEr�_utf8_decoderrr�
Serializerrd�chk_serializer_255_bigpager��chk_bencode_serializerr<rr�<module>r�s���"9�������I����(��)3�(?�(?���_8�_8�Dm�J�)�)�m�`+�5�/�B���5�}��.�e�_�E�r

Youez - 2016 - github.com/yon3zu
LinuXploit