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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g:����SSKJr SSKJrJr SSKJr SSKJr SSKJ	r	 SSK
JrJrJ
r
JrJrJrJr S	S
SSS
S.r\4Sjr\R("S5rSr"SS\5r\"5rg)�)�Optional�)�
lazy_regex�trace)�revision)�BzrError)�Revision�)�
XMLSerializer�encode_and_escape�escape_invalid_chars�get_utf8_or_ascii�serialize_inventory_flat�unpack_inventory_entry�unpack_inventory_flat�'�"�&�<�>)sapossquotsampsltsgtc���URS5nX$![a@ URS5(de[[	USS55RS5s$f=f)Nr
�#�utf8)�group�KeyError�
startswith�chr�int�encode)�match�_map�codes   �1/usr/lib/python3/dist-packages/breezy/bzr/xml8.py�
_unescaperr$*s]���;�;�q�>�D�1��z����1����t�$�$���3�t�A�B�x�=�!�(�(��0�0�1�s��AA!� A!s
\&([^;]*);c�6�[R[U5$)z5Unescape predefined XML entities in a string of data.)�_unescape_re�subr$)�datas r#�
_unescape_xmlr)7s�����J��-�-�c���\rSrSr%Sr/r\\\S'Sr	\
\\S'Sr1Skr
SrSr\
\\S	'\R""S
5rSrSrS
rSrSSjrSrSrSSjrSSjrSrSrSrSrg)�
Serializer_v8�<z[This serialiser adds rich roots.

Its revision format number matches its inventory number.
�	__slots__N�root_idT>�file�symlink�	directory�8�revision_format_nums@file_id="(?P<file_id>[^"]+)".* revision="(?P<revision_id>[^"]+)"c�x�URc[S5eURRc[S5eg)z�Extension point for subclasses to check during serialisation.

:param inv: An inventory about to be serialised, to be checked.
:raises: AssertionError if an error has occurred.
Nzinv.revision_id is Nonezinv.root.revision is None)�revision_id�AssertionError�rootr��self�invs  r#�_check_revisions�Serializer_v8._check_revisionsSs;���?�?�"� �!:�;�;��8�8���$� �!<�=�=�%r*c��UcgUS-nUR5U:a=US-n[R"SUR5U5 URU5 gg)a�Check that the entry_cache is large enough.

We want the cache to be ~2x the size of an inventory. The reason is
because we use a FIFO cache, and how Inventory records are likely to
change. In general, you have a small number of records which change
often, and a lot of records which do not change at all. So when the
cache gets full, you actually flush out a lot of the records you are
interested in, which means you need to recreate all of those records.
An LRU Cache would be better, but the overhead negates the cache
coherency benefit.

One way to look at it, only the size of the cache > len(inv) is your
'working' set. And in general, it shouldn't be a problem to hold 2
inventories in memory anyway.

:param inv_size: The number of entries in an inventory.
Ng�?rz0Resizing the inventory entry cache from %d to %d)�
cache_sizer�mutter�resize)r:�inv_size�entry_cache�recommended_min_cache_size�recommended_cache_sizes     r#�_check_cache_size�Serializer_v8._check_cache_size^sh��$���%-��^�"��!�!�#�&@�@�%-��\�"��L�L�B��&�&�(�&�
�

���5�6�Ar*c�&�URUS5$)z2Return a list of lines with the encoded inventory.N��write_inventoryr9s  r#�write_inventory_to_lines�&Serializer_v8.write_inventory_to_lines}s���#�#�C��.�.r*c�&�URUS5$�NrIr9s  r#�write_inventory_to_chunks�'Serializer_v8.write_inventory_to_chunks�s���#�#�C��.�.r*c��/nURnURXQ5 [XURURU5 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.
)�append�_append_inventory_rootrr/�supported_kinds�
writelines)r:r;�f�working�outputrRs      r#rJ�Serializer_v8.write_inventory�sU���������#�#�F�0� �����t�';�';�W�	
�
�=�
�L�L�� ��
r*c�j�URb(SRS[UR5S/5nOSnU"SURU4-5 U"S[URR
5[URR5[URR54-5 g)z$Append the inventory root to output.Nr*s revision_id="rs<inventory format="%s"%s>
s3<directory file_id="%s" name="%s" revision="%s" />
)r6�joinr�
format_numr8�file_id�namer)r:rRr;�revid1s    r#rS�$Serializer_v8._append_inventory_root�s����?�?�&��X�X�"�$5�c�o�o�$F��M��F��F��-����&�0I�I�J��C�!�#�(�(�"2�"2�3�!�#�(�(�-�-�0�!�#�(�(�"3�"3�4��
�	
r*c	��/nS[UR5UR=(d URUR[UR
R
S55UR4-nURb*US[UR5RS5--
nURUS-5 [[UR5S5nURSU-S-RS	55 UR (awURS
5 UR HEn["R$"U5 URS[UR
S55-5 MG URS5 UR&(a�S
n[)UR&R+55HjupxU(a8US[U5[[U5S54--RS	5n	OUS[U54--/n	SnURU	5 Ml URS5 URS5 U$)zRevision object -> xml tree.sZ<revision committer="%s" format="%s" inventory_sha1="%s" revision_id="%s" timestamp="%.3f"zutf-8s timezone="%s"�asciis>
rs	<message>s</message>
Ts
<parents>
s"<revision_ref revision_id="%s" />
s</parents>
s<properties>s"<property name="%s">%s</property>
s<property name="%s" />
r*s</properties>
s</revision>
)r�	committerr4r\�inventory_sha1r6�decode�	timestamp�timezone�strrrRr
�message�extend�
splitlines�
parent_ids�
_mod_revision�check_not_reserved_id�
properties�sorted�items)
r:�rev�lines�elri�	parent_id�preamble�	prop_name�
prop_value�	propliness
          r#�write_revision_to_lines�%Serializer_v8.write_revision_to_lines�s
��
��
 �"�#�-�-�0��(�(�;�D�O�O��"�"�!�#�/�/�"8�"8��"A�B��
�
��	
�	��<�<�#��#�c�#�,�,�&7�&>�&>�w�&G�G�G�B�
���R�&�[�!�#�$8����$E�a�$H�I��
���l�W�,��>�J�J�4�P�Q��>�>��L�L��(� �^�^�	��3�3�I�>����:�'�	�(8�(8��(A�B�C��,�
�L�L��)��>�>�&�H�)/����0D�0D�0F�)G�%�	�� �@�-�i�8�-�.B�:�.N�q�.Q�R����!�j��&��!�5�9J�9�9U�8W�W�X�!�I������Y�'�!*H�"
�L�L�+�,�
���%�&��r*c��[XU5$rN)r)r:�eltrC�return_from_caches    r#�
_unpack_entry�Serializer_v8._unpack_entry�s��%�c�8I�J�Jr*c�~�[XRURX45nUR[	U5U5 U$)zConstruct from XML Element.)rr\rrF�len)r:r}r6rCr~r;s      r#�_unpack_inventory�Serializer_v8._unpack_inventory�s:��$����$�"4�"4�k�
��	
���s�3�x��5��
r*c	���URS5nURnURbURnUb.UR5U:wa[	SRU55e[n[URS5[URS55U"URS55URS5RS5S9nURS	5nUb9UH3nURRU"URS555 M5 URX5 URS
5nUcSUl
O[U5Ul
URS5UlU$)
zXML Element -> Revision object.�formatz'invalid format version {!r} on revisionrcrfr6rdrb)rcrfr6rd�parentsrgrri)�getr\r4rrr�rr	�float�findrlrR�_unpack_revision_propertiesrgr�findtextri)	r:r}r�r\�
get_cachedrrr��p�vs	         r#�_unpack_revision�Serializer_v8._unpack_revision�s9������"���_�_�
��#�#�/��1�1�J����}�}��*�,��H�O�O�PV�W�X�X�&�
���g�g�k�*��C�G�G�K�0�1�"�3�7�7�=�#9�:��7�7�#3�4�;�;�G�D�	
���(�(�9�%���������%�%�j����}�1E�&F�G���(�(��2��G�G�J����9��C�L��q�6�C�L��l�l�9�-����
r*c�Z�URS5nUcgUH�nURS:wa$[SRUR55eUR	S5nUR
nUcSnXRR;a[SRU55eXbRU'M� g)z"Unpack properties onto a revision.roN�propertyz#bad tag under properties list: {!r}r^�zrepeated property {!r})r��tagr7r�r��textro)r:r}rr�	props_elt�prop_eltr^�values       r#r��)Serializer_v8._unpack_revision_propertiess����H�H�\�*�	����!�H��|�|�z�)�$�9�@�@����N����<�<��'�D��M�M�E��}����~�~�%�$�%=�%D�%D�T�%J�K�K�#(�N�N�4� �"r*c���UR(d[SRU55e0n0n0nURRn[
nURnUHJup�U"U5n
U
cMU
RSS5up�X<nXKnX�4nU"US5 X�S:XdMFSX.'ML U$![a U"U5n
X�U'U
nN?f=f![a U"U5n
X�U'U
nNXf=f)aCore routine for extracting references to texts from inventories.

This performs the translation of xml lines to revision ids.

:param line_iterator: An iterator of lines, origin_version_id
:return: A dictionary mapping text keys ((fileid, revision_id) tuples)
    to whether they were referred to by the inventory of the
    revision_id that they contain. Note that if that revision_id was
    not part of the line_iterator's output then False will be given -
    even though it may actually refer to that key.
zh_find_text_key_references only supported for branches which store inventory as unnested xml, not on {!r}r]r6F���T)	�support_altered_by_hackr7r��_file_ids_altered_regex�searchr)�
setdefaultrr)r:�
line_iterator�result�unescape_revid_cache�unescape_fileid_cacher��unescaper��line�line_keyr r]r6�	unescaped�keys               r#�_find_text_key_references�'Serializer_v8._find_text_key_references$s)���+�+� � � &��t���
�
�� "�� "���-�-�4�4�� ���&�&�
�+�N�D��4�L�E��}��$)�;�;�y�-�#H� �G�
(�2�?��
$�/�8���(�C��s�E�"��r�l�*�"���M,�N�
��)�
(�$�[�1�	�4=�[�1�'��
(���
$�$�W�-�	�1:�g�.�#��
$�s$�B,�C
�,C�C�
C%�$C%�)F)NF)NNF) �__name__�
__module__�__qualname__�__firstlineno__�__doc__r.�listrh�__annotations__r/r�bytesr�rTr\r4r�lazy_compiler�r<rFrKrOrJrSrzrr�r�r�r��__static_attributes__r�r*r#r,r,<s����
�I�t�C�y��#�G�X�e�_�#�"��7�O��J�+/���%��/�)�5�5�K���	>�7�>/�/��.
�$5�nK�
JO���:)�*Nr*r,N)�typingrr�rrrrm�errorsrr	�xml_serializerrrr
rrrr�_xml_unescape_mapr$r�r&r)r,�
serializer_v8r�r*r#�<module>r�sw��"� �(�������
������-�1��&�&�~�6��.�
v�M�v�r	��
r*

Youez - 2016 - github.com/yon3zu
LinuXploit