403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
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/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/globbing.cpython-313.pyc
�

p��gS0��p�SrSSKrSSKJr SSKJrJr "SS5r\"5r\RSS	5 \RS
S5 \RSS
5 \RSS5 \RSS5 \RSS5 Sr
SrSr\"5r
\
RSS5 \
RSS5 \
RS\"S55 \
RS\"S55 \
RS\5 \"5r\RS\
5 \RS\
5 \RS S5 \RS!S"5 \RS#S$5 \RS%S&5 \RS'S(5 \RS)S*5 \"5r\RS\
5 \RS!S"5 \RS#S$5 \RS'S+5 \RS)S,5 S-r"S.S/5r"S0S15r"S2S3\5r\R("S45rS5rg)6z�Tools for converting globs to regular expressions.

This module provides functions for converting shell-like globs to regular
expressions.
�N�)�
lazy_regex)�mutter�warningc�^�\rSrSrSr\R"S5rSSjrSr	Sr
SrS	rS
r
g)�Replacer�aDo a multiple-pattern substitution.

The patterns and substitutions are combined into one, so the result of
one replacement is never substituted again. Add the patterns and
replacements via the add method and then call the object. The patterns
must not contain capturing groups.
�\\&Nc��SUlU(a5[UR5Ul[UR5Ulg/Ul/Ulg�N)�_pat�list�_pats�_funs)�self�sources  �1/usr/lib/python3/dist-packages/breezy/globbing.py�__init__�Replacer.__init__(s:����	���f�l�l�+�D�J��f�l�l�+�D�J��D�J��D�J�c�~�SUlURRU5 URRU5 g)a.Add a pattern and replacement.

The pattern must not contain capturing groups.
The replacement might be either a string template in which \& will be
replaced with the match, or a function that will get the matching text
as argument. It does not get match object, because capturing is
forbidden anyway.
N)r
r�appendr)r�pat�funs   r�add�Replacer.add1s/����	��
�
���#���
�
���#�rc��SUlURRUR5 URRUR5 g)zAdd all patterns from another replacer.

All patterns and replacements from replacer are appended to the ones
already defined.
N)r
r�extendr)r�replacers  r�add_replacer�Replacer.add_replacer>s7����	��
�
���(�.�.�)��
�
���(�.�.�)rc
�@�UR(dc[R"SRURVs/sHnSRU5PM sn5[R5UlURRURU5$s snf)N�|�({}))
r
r�lazy_compile�joinr�format�re�UNICODE�sub�_do_sub)r�text�ps   r�__call__�Replacer.__call__Hsj���y�y�"�/�/����D�J�J�?�J�q�&�-�-��*�J�?�@�"�*�*��D�I��y�y�}�}�T�\�\�4�0�0��@s�Bc���URURS-
n[U5(aU"URS55$URRURS5U5$)Nrr)r�	lastindex�callable�group�_expandr*)r�mrs   rr+�Replacer._do_subOsR���j�j����q��)���C�=�=��q�w�w�q�z�?�"��<�<�#�#�A�G�G�A�J��4�4r)rr
rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr%r4rrr r.r+�__static_attributes__�rrrrs2����%�%�g�.�G���*�1�5rrz\[:digit:\]z\dz\[:space:\]z\sz\[:alnum:\]z\wz\[:ascii:\]z\0-\x7fz\[:blank:\]z \tz\[:cntrl:\]z\0-\x1f\x7f-\x9fc�d�USS;aS[USS5-S-$S[USS5-S-$)Nr)�!�^z[^�����]�[)�
_sub_named�r5s r�
_sub_grouprG`sD����t�z���j��1�R��)�)�C�/�/���A�a��G�$�$�s�*�*rc�^�U4SjnU$)Nc�>>�[SRUT55 T$)NzA'{}' not allowed within a regular expression. Replacing with '{}')rr')r5�repls �r�_�_invalid_regex.<locals>._gs%����O�V�V��4�
�	
�
�rr=)rJrKs` r�_invalid_regexrMfs����
�Hrc�J�[U5S-S:wa[S5 USS$U$)z�Check trailing backslashes.

Does a head count on trailing backslashes to ensure there isn't an odd
one on the end that would escape the brackets we wrap the RE in.
rArzQRegular expressions cannot end with an odd number of '\'. Dropping the final '\'.NrB)�lenrrFs r�_trailing_backslashes_regexrPrs3��	�A���
�q���
'�	
���"�v�
��Hrz^RE:�z\((?!\?)z(?:z	\(\?P<.*>z
\(\?P=[^)]*\)z\\+$z^RE:.*z \[\^?\]?(?:[^][]|\[:[^]]+:\])+\]z(?:(?<=/)|^)(?:\.?/)+z\\.z\&z[(){}|^$+.]r
z(?:(?<=/)|^)\*\*+/z(?:.*/)?z\*+z[^/]*z\?z[^/]z.*�.c��[USS5$)NrA)�
_sub_basename��patterns r�_sub_extensionrW�s�������%�%rc�t�\rSrSrSr/SQr\SS.\SS.\SS.S.r	Sr
SS	jrS
r\
S5r\
S5rS
rg)�Globster�a/A simple wrapper for a set of glob patterns.

Provides the capability to search the patterns to find a match for
a given filename (including the full path).

Patterns are translated to regular expressions to expidite matching.

The regular expressions for multiple patterns are aggregated into
a super-regex containing groups of up to 99 patterns.
The 99 limitation is due to the grouping limit of the Python re module.
The resulting super-regex and associated patterns are stored as a list of
(regex,[patterns]) in _regex_patterns.

For performance reasons the patterns are categorised as extension patterns
(those that match against a file extension), basename patterns
(those that match against the basename of the filename),
and fullpath patterns (those that match against the full path).
The translations used for extensions and basenames are relatively simpler
and therefore faster to perform than the fullpath patterns.

Also, the extension patterns are more likely to find a match and
so are matched first, then the basename patterns, then the fullpath
patterns.
��	extension�basename�fullpathz(?:.*/)?(?!.*/)(?:.*\.))�
translator�prefixz(?:.*/)?(?!.*/)rQc� �/Ul///S.nUH5n[U5nU[RU5R	U5 M7 [R
n[RH"nURX%XESXES5 M$ g)Nr[r_r`)�_regex_patterns�normalize_patternrY�identifyr�pattern_info�
pattern_types�
_add_patterns)r�patterns�
pattern_listsr�pi�ts      rr�Globster.__init__�s���!������
�
�
�C�#�C�(�C��(�+�+�C�0�1�8�8��=���
"�
"���'�'�A����}�/���|�1D�b�e�H�o�V�(rc�V�U(a�USSVs/sHnSRU"U55PM nnSRUSRU55nURR[R
"U[R5USS45 USSnU(aM�ggs snf)N�cr$z	{}(?:{})$r#)r'r&rbrrr%r(r))rrhr_r`r�
grouped_rules�joined_rules       rrg�Globster._add_patterns�s����GO�PS�QS�}�U�}��V�]�]�:�c�?�;�}�M�U�%�,�,�V�S�X�X�m�5L�M�K�
� � �'�'��(�(��b�j�j�A�8�C�R�=�Q�
� ���}�H��h��Us�!B&c���URH0up#URU5nU(dMX4RS-
s $ g![Ra�n[SUR5 SUlSnURH>upsUH3n[RU5(aMUSRU5-
nM5 M@ U=RU-
slUeSnAff=f)�}Searches for a pattern that matches the given filename.

:return A matching pattern or None if there is no matching pattern.
rz#Invalid pattern found in regex: %s.z=File ~/.config/breezy/ignore or .bzrignore contains error(s).rQz
  {}N)
rb�matchr1r�InvalidPatternr�msgrY�is_pattern_validr')	r�filename�regexrhrt�e�bad_patternsrKr-s	         rrt�Globster.match�s���
	�#'�#7�#7������H�-���5�#�O�O�a�$7�8�8�$8�"���(�(�	�
�8�!�%�%�@�S�A�E��L�#�3�3���!�A�#�4�4�Q�7�7�$�����(:�:��"� 4�
�E�E�\�!�E��G��	�s)�'A�A�A�C �A
C�(3C�C c�l�URS5(dSU;agURS5(agg)z�Returns pattern category.

:param pattern: normalized pattern.
Identify if a pattern is fullpath, basename or extension
and returns the appropriate type.
�RE:�/r^z*.r\r])�
startswithrUs rrd�Globster.identify�s5�����e�$�$��w���
�
�
��
%�
%��rc�2�Sn[R[RU5SnSRU"U55n[R
"U[R5nURS5 U$![Ra SnU$f=f)z�Returns True if pattern is valid.

:param pattern: Normalized pattern.
is_pattern_valid() assumes pattern to be normalized.
see: globbing.normalize_pattern
Tr_r$rQF)
rYrerdr'rr%r(r)�searchru)rV�resultr_�tpattern�re_objs     rrw�Globster.is_pattern_valid
s������*�*�8�+<�+<�W�+E�F�|�T�
��=�=��G�!4�5��	��,�,�X�r�z�z�B�F��M�M�"���
���(�(�	��F��
�	�s�6A<�<B�B�rbN)rQ)r7r8r9r:r;rfrWrT�
_sub_fullpathrerrgrt�staticmethodrdrwr<r=rrrYrY�sm���::�M�)�0�
�$1�<N�O�#0�C�@�
�L�W�	%��2�������rrYc�$�\rSrSrSrSrSrSrg)�ExceptionGlobsteria�A Globster that supports exception patterns.

Exceptions are ignore patterns prefixed with '!'.  Exception
patterns take precedence over regular patterns and cause a
matching filename to return None from the match() function.
Patterns using a '!!' prefix are highest precedence, and act
as regular ignores. '!!' patterns are useful to establish ignores
that apply under paths specified by '!' exception patterns.
c�P�////nUHunURS5(aUSRUSS5 M2URS5(aUSRUSS5 MaUSRU5 Mw UVs/sHn[U5PM snUlgs snf)Nz!!rAr?rr)r�rrY�_ignores)rrh�ignoresr-�is     rr�ExceptionGlobster.__init__(s����r�2�,���A��|�|�D�!�!���
�!�!�!�A�B�%�(����c�"�"���
�!�!�!�A�B�%�(���
�!�!�!�$�
�/6�6�g���!��g�6��
��6s�B#c���URSRU5nU(aSRU5$URSRU5(agURSRU5$)rsrAz!!{}rNr)r�rtr')rrx�
double_negs   rrt�ExceptionGlobster.match3sf��
�]�]�1�%�+�+�H�5�
���=�=��,�,�
�]�]�1�
�
#�
#�H�
-�
-���=�=��#�)�)�(�3�3r)r�N)r7r8r9r:r;rrtr<r=rrr�r�s���	7�4rr�c��\rSrSrSrSrSrg)�_OrderedGlobsteriAz$A Globster that keeps pattern order.c���/UlUH_n[U5n[RU5nUR	U/[R
US[R
US5 Ma g)z9Constructor.

:param patterns: sequence of glob patterns
r_r`N)rbrcrYrdrgre)rrhrrks    rr�_OrderedGlobster.__init__Dsi�� "����C�#�C�(�C��!�!�#�&�A�������%�%�a�(��6��%�%�a�(��2�
�rr�N)r7r8r9r:r;rr<r=rrr�r�As
��.�rr�z[\\/]+c���URS5(d,URS5(d[RSU5n[U5S:�aUR	S5nU$)z}Converts backslashes in path patterns to forward slashes.

Doesn't normalize regular expressions - they may contain escapes.
r~z!RE:rr)r��_slashesr*rO�rstriprUs rrcrcXsT��

���u�%�%��);�);�F�)C�)C��,�,�s�G�,��
�7�|�a���.�.��%���Nr)r;r(rQr�tracerrrrErrGrMrP�_sub_rer�rTrWrYr�r�r%r�rcr=rr�<module>r�s��"�
��"�75�75�t�Z�
�
���~�u�%�
���~�u�%�
���~�u�%�
���~�z�*�
���~�v�&�
���~�2�3�+�	
�
��*�����F�B�����L�%� ����M�>�%�0�1������r� 2�3����G�0�1��
�
�
���)�W�%�
���5�z�B�
���*�B�/�
���&�%� �
���.�&�)�
���'��5�
���&�(�#�
���%��!��
�
�
���5�z�B�
���&�%� �
���.�&�)�
���&�%� �
���%���&�z�z�z!4�!4�H�x��(�"�"�9�-��	r

Youez - 2016 - github.com/yon3zu
LinuXploit