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__/rio.cpython-313.pyc
�

p��g�*���SSKrSSKJr SSKJr "SS5r"SS5rSS	jrS
r"SS5r	S
r
SrSSjrSr
SrSSKJr SSKJr g!\a$r\R*"\5 SSKJrJr SrCgSrCff=f)�N�)�osutils��IterableFilec� �\rSrSrSrSrSrg)�	RioWriter�*c��SUlXlg�NF��_soft_nl�_to_file��self�to_files  �0/usr/lib/python3/dist-packages/breezy/bzr/rio.py�__init__�RioWriter.__init__+s����
��
�c��UR(aURRS5 URUR5 SUlg)N�
T)r
r�write)r�stanzas  r�write_stanza�RioWriter.write_stanza/s2���=�=��M�M����&����T�]�]�#���
rrN)�__name__�
__module__�__qualname__�__firstlineno__rr�__static_attributes__�rrrr*s�� �rrc�$�\rSrSrSrSrSrSrg)�	RioReader�6z�Read stanzas from a file as a sequence.

to_file can be anything that can be enumerated as a sequence of
lines (with newlines.)
c��Xlg�N��
_from_file)r�	from_files  rr�RioReader.__init__=s��#�rc#�J# �[UR5nUcgUv� M7fr&)�read_stanzar()r�ss  r�__iter__�RioReader.__iter__@s(�����D�O�O�,�A��y�����s�!#r'N)rrrr�__doc__rr.r r!rrr#r#6s���$�rr#c�4^^�UU4Sjn[U"55$)z7Produce a rio IterableFile from an iterable of stanzas.c3�># �TbTS-v� SnTH&nUSLaSv� UR5Shv�N SnM( gN7f)NrTF)�to_lines)�first_stanzar-�header�stanzass  ��r�str_iter�rio_file.<locals>.str_iterLsK�������5�.� ����A��4�'����z�z�|�#�#� �L�	�
$�s�.?�=�?r)r6r5r7s`` r�rio_filer9Is���!���
�#�#rc#�6# �[U5nUcgUv� M7fr&)r,)r)r-s  r�read_stanzasr;Ys$���
��	�"���9����	�s�c��\rSrSrSrS/rSrSr\S5r	Sr
SrS	rS
r
SrSrS
rSrSrSr\rSrSrSrg)�Stanza�aaOne stanza for rio.

Each stanza contains a set of named fields.

Names must be non-empty ascii alphanumeric plus _.  Names can be repeated
within a stanza.  Names are case-sensitive.  The ordering of fields is
preserved.

Each field value must be either an int or a string.
�itemsc��/UlU(a4[UR55Hup#URX#5 M gg)zaConstruct a new Stanza.

The keyword arguments, if any, are added in sorted order to the stanza.
N)r?�sorted�add)r�kwargs�tag�values    rr�Stanza.__init__os6��
��
��$�V�\�\�^�4�
������$�5�rc�\�[U5(d[SRU55e[U[5(aOP[U[
5(aO:[U[5(aO$[SRU[U555eURRX45 g)z&Append a name and value to the stanza.zinvalid tag {!r}z+invalid type for rio value: {!r} of type {}N)�	valid_tag�
ValueError�format�
isinstance�bytes�strr=�	TypeError�typer?�append)rrDrEs   rrB�
Stanza.addys�����~�~��/�6�6�s�;�<�<��e�U�#�#��
��s�
#�
#��
��v�
&�
&���=�D�D�U�D�QV�K�X��
�	
�
�
���3�,�'rc� �U"5nXlU$r&�r?)�cls�pairs�rets   r�
from_pairs�Stanza.from_pairs�s���e���	��
rc�B^�[U4SjUR55$)z=True if there is any field in this stanza with the given tag.c3�2># �UHupUT:Hv� M g7fr&r!)�.0rDrE�find_tags   �r�	<genexpr>�&Stanza.__contains__.<locals>.<genexpr>�s����@�Z�z�s�3�(�?�Z�s�)�anyr?)rr\s `r�__contains__�Stanza.__contains__�s����@�T�Z�Z�@�@�@rc�,�[UR5$)z%Return number of pairs in the stanza.)�lenr?�rs r�__len__�Stanza.__len__�s���4�:�:��rc�`�[U[5(dgURUR:H$r)rKr=r?�r�others  r�__eq__�
Stanza.__eq__�s%���%��(�(���z�z�U�[�[�(�(rc�.�URU5(+$r&)rjrhs  r�__ne__�
Stanza.__ne__�s���;�;�u�%�%�%rc�8�SRUR5$)NzStanza({!r}))rJr?rds r�__repr__�Stanza.__repr__�s���$�$�T�Z�Z�0�0rc�,�[UR5$)z$Return iterator of tag, value pairs.)�iterr?rds r�
iter_pairs�Stanza.iter_pairs�s���D�J�J��rc�:�UR(d/$/nURH�up#URS5n[U[5(aURSS5nO([U[5(aUR5nOUnUS:XaUR
US-5 M�SU;aSURS5nUR
US-US-S-5 US	S
HnUR
SU-S-5 M M�UR
US-U-S-5 M� U$)zkGenerate sequence of lines for external version of this file.

The lines are always utf-8 encoded strings.
�asciizutf-8�surrogateescapers: 
rs: r�N�	)r?�encoderKrMr=�	to_stringrP�split)r�result�text_tag�
text_valuerDrE�	val_lines�lines        rr3�Stanza.to_lines�s��
�z�z��I���$(�J�J� �H��/�/�'�*�C��*�c�*�*�"�)�)�'�3D�E���J��/�/�"�,�,�.��"����|��
�
�c�G�m�,��%��!�K�K��.�	��
�
�c�E�k�I�a�L�8�5�@�A�%�a�b�M�D��M�M�%�$�,��"6�7�*��
�
�c�E�k�E�1�E�9�:�#%/�$�
rc�@�SRUR55$)z!Return stanza as a single string.r)�joinr3rds rr|�Stanza.to_string�s���x�x��
�
��(�(rc�B�URUR55 g)zWrite stanza to a file.N)�
writelinesr3rs  rr�Stanza.write�s�����4�=�=�?�+rc�T�URHup#X!:XdMUs $ [U5e)z�Return the value for a field wih given tag.

If there is more than one value, only the first is returned.  If the
tag is not present, KeyError is raised.
)r?�KeyError)rrD�t�vs    r�get�
Stanza.get�s*���J�J�D�A��x�����3�-�rc�d�/nURHup4X1:XdMURU5 M U$r&)r?rP)rrD�rr�r�s     r�get_all�Stanza.get_all�s.�����J�J�D�A��x��������rc�<�0nURH	up#X1U'M U$)z9Return a dict containing the unique values of the stanza.rS)r�drDrEs    r�as_dict�Stanza.as_dict�s#�����*�*�J�C��c�F�%��rrSN)rrrrr0�	__slots__rrB�classmethodrWr`rerjrmrprtr3r|rr��__getitem__r�r�r r!rrr=r=asr��	��	�I�%�(� ����
A��)�
&�1� ��:)�,�
 ��K��rr=c��[U5$r&��
_valid_tag)rDs rrHrH�s���c�?�rc��[U5$)a�Return new Stanza read from list of lines or a file.

Returns one Stanza that was read, or returns None at end of file.  If a
blank line follows the stanza, it is consumed.  It's not an error for
there to be no blank at end of file.  If there is a blank file at the
start of the input this is really an empty stanza and that is returned.

Only the stanza lines and the trailing blank (if any) are consumed
from the line_iter.

The raw lines must be in utf-8 encoding.
��_read_stanza_utf8��	line_iters rr,r,�s���Y�'�'rc�<�US::a[U5eUS-
n/nUR5GHnnURS5SSGHQn[R"SSU5n[U5S:�dM-USUnXRSn[U5S:�aeUSS	S
/:wa[SnUR
S
S5nUS:aUR
S
S5nUS	-
nUS:aUR
SS5nUS:�aXgSU-nUSUn[U5S:�aSU-n[R"SSU5nSn[U5S:�aUS-
nO#[R"SU5(aUS-
nSnURSU-S-5 U(aURS5 [U5S:�aGM$GMT GMq U$)a_Convert a stanza into RIO-Patch format lines.

RIO-Patch is a RIO variant designed to be e-mailed as part of a patch.
It resists common forms of damage such as newline conversion or the removal
of trailing whitespace, yet is also reasonably easy to read.

:param max_width: The maximum number of characters per physical line.
:return: a list of lines
��rN����\\s\\\\rry� i����-�/s  �
s\\rF�\s $T�# s#   
)	rIr3r}�re�subrc�rfind�searchrP)	r�	max_width�
max_rio_width�lines�pliner��partline�break_index�
blank_lines	         r�to_patch_linesr��s����A�~���#�#���M�M��E����"���K�K��&�s��+�D��6�6�'�;��5�D��d�)�a�-����/���N�+���t�9�q�=�T�"�1�X�$��%7�"$�K�"*�.�.��s�";�K�"�Q��&.�n�n�T�3�&?��#�q�(��"�Q��&.�n�n�T�3�&?��"�a�'�'��5��<��#+�L�[�#9���t�9�q�=� �4�<�D��6�6�%��8�<��"�
��t�9�q�=���%�H��Y�Y�u�h�/�/���%�H�!%�J����U�X�-��5�6���L�L��+�3�d�)�a�-�-�,�#�:�Lrc#�^# �SSSS.mU4SjnSnUH�nURS5(aUSSnO6URS5(aUS	SnO[S
RU55eUb[U5S:�aUSSn[R
"SSU5n[R
"SX5nUcUnOX#-
nUSSS
:XdM�Uv� SnM� UbUv� gg7f)Nr�r�r)r�s\rs\
c�,>�TURS5$)Nr)�group)�match�maps �r�mapget�"_patch_stanza_iter.<locals>.mapget-s����5�;�;�q�>�"�"rr�r�#ryz
bad line {!r}s\\(.|
)r�r)�
startswithrIrJrcr�r�)r�r��	last_liner�r�s    @r�_patch_stanza_iterr�*s������5�3�
7�C�#��I����?�?�5�!�!����8�D�
�_�_�T�
"�
"����8�D��_�3�3�D�9�:�:�� �S��Y��]����8�D��v�v�e�S�$�'���v�v�m�V�2�����I���I��R�S�>�U�"��O��I�#�$�����s�B=C�Cc�*�[[U55$)a!Convert an iterable of RIO-Patch format lines into a Stanza.

RIO-Patch is a RIO variant designed to be e-mailed as part of a patch.
It resists common forms of damage such as newline conversion or the removal
of trailing whitespace, yet is also reasonably easy to read.

:return: a Stanza
)r,r�r�s r�read_patch_stanzar�Gs���)�)�4�5�5rryr�r�)r�r�r&)�H)r��r�iterablefilerrr#r9r;r=rHr,r�r�r��_rio_pyxr��_rio_rsr��ImportError�e�failed_to_load_extension�_rio_pyr!rr�<module>r�s���B
��'�	�	���&
$� �D�D�N�
(� +�\�:	6�7�+�#���7��$�$�Q�'�6�6��7�s�	A�B�A;�;B

Youez - 2016 - github.com/yon3zu
LinuXploit