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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g�5���Sr/SQrSSKrSSKJq SSKrSrSrSrSrS	r	S
r
SrSrS
r
Sr"SS\5rSSjrSrSrSSjrSSjrg)zFSymbol versioning.

The methods here allow for api symbol versioning.
)�DEPRECATED_PARAMETER�deprecated_function�
deprecated_in�deprecated_list�deprecated_method�deprecated_passed�set_warning_method�warn�N�r	zA deprecated parameter marker.c�L�SR[R"U55$)z�Generate a message that something was deprecated in a release.

>>> deprecated_in((1, 4, 0))
'%s was deprecated in version 1.4.0.'
z %s was deprecated in version {}.)�format�breezy�_format_version_tuple)�
version_tuples �:/usr/lib/python3/dist-packages/breezy/symbol_versioning.pyrr,s%��.�4�4��$�$�]�3���c��Uqg)zzSet the warning method to be used by this module.

It should take a message and a warning category as warnings.warn does.
Nr)�methods rrr7s	���Drc��[USS5b]SRURRRURRR
UR
5nX-$[USS5b:SUR;a*SRURUR5nX-$SRURUR
5nX-$)a[Generate an automatic deprecation string for a_callable.

:param a_callable: The callable to substitute into deprecation_version.
:param deprecation_version: A deprecation format warning string. This
    should have a single %s operator in it. a_callable will be turned into
    a nice python symbol and then substituted into deprecation_version.
�__self__N�{}.{}.{}�__qualname__�<�{}.{})�getattrr
r�	__class__�
__module__�__name__r)�
a_callable�deprecation_version�symbols   r�deprecation_stringr"Fs����z�:�t�,�8��"�"����)�)�4�4����)�)�2�2����
���'�'�
	�
�N�D�1�=��z�.�.�.����
� 5� 5�z�7N�7N�O���'�'����
� 5� 5�z�7J�7J�K���'�'rc�^�U4SjnU$)z=Decorate a function so that use of it will trigger a warning.c�4>^�UU4Sjn[TTSU5 U$)�<This is the function python calls to perform the decoration.c�v>�SSKJn URSS5 [[	TT5[
SS9 T"U0UD6$)zThis is the decorated function.���trace�zDeprecated function called���
stacklevel)�r)�mutter_callsiter	r"�DeprecationWarning)�args�kwargsr)�callabler s   ��r�decorated_function�Kdeprecated_function.<locals>.function_decorator.<locals>.decorated_functiondsB�����!�!�!�%A�B��"�8�-@�A�"��
�
�T�,�V�,�,r�function��_populate_decorated)r3r4r s` �r�function_decorator�/deprecated_function.<locals>.function_decoratoras%���
	-�	��)�:�7I�	
�"�!r�)r r9s` rrr^s���"�(�rc�^�U4SjnU$)z�Decorate a method so that use of it will trigger a warning.

To deprecate a static or class method, use

    @staticmethod
    @deprecated_function
    def ...

To deprecate an entire class, decorate __init__.
c�4>^�UU4Sjn[TTSU5 U$)r%c�>�SSKJn TRS:Xa;SRURR
URR5nOESRURR
URRTR5nUR
SS5 [TU-[SS	9 T"U/UQ70UD6$)
zThis is the decorated method.r'r(�__init__rrr*zDeprecated method calledr+r,)	r.r)rr
rrr/r	r0)�selfr1r2r)r!r3r s     ��r�decorated_method�Edeprecated_method.<locals>.method_decorator.<locals>.decorated_method�s������ � �J�.� ����N�N�-�-��N�N�+�+���
$�*�*��N�N�-�-��N�N�+�+��%�%���

�!�!�!�%?�@��$�v�-�/A�a�P��D�2�4�2�6�2�2rrr7)r3rAr s` �r�method_decorator�+deprecated_method.<locals>.method_decorator�s ���	3�&	�H�&9�8�EU�V��rr;)r rCs` rrrxs��� �2�rc��U[L$)z(Return True if parameter_value was used.)r)�parameter_values rrr�s�� �"6�6�6rc��UR(aURRS5nO/n[U5S:XaUSU--Ulg[U5S:Xa$URS-S-USU---S-Ulg[US5nURnUSSU---
nXaSU---
nUSSU---
nXclg)N�
r
zThis r'���� )�__doc__�split�len)r3r �label�decorated_callable�docstring_lines�spaces�new_docs       r�_decorate_docstringrS�s������"�*�*�0�0��6����
�?��q� �%8�G�e�O�%L��"�	�_�	��	"�����
��
�"�W�u�_�5�
6��	
�	�"��_�R�(�)���"�"���4�#��,�&�&���'�E�/�:�:���4�#��,�&�&��%,�"rc�n�[XX#5 URUlURUlSUlg)zHPopulate attributes like __name__ and __doc__ on the decorated callable.TN)rSrr�
is_deprecated)r3r rNrOs    rr8r8�s3����u�Q�$,�$7�$7��!�"*�"3�"3���'+��$rc�^�U4SjnU$)z@Returns a closure that emits a warning and calls the superclass.c��>�SRUR5nURU4-nUR(aUSUR--
n[	U[
SS9 T"U/UQ70UD6$)Nzaccess to {}rJr+r,)r
�_variable_name�_deprecation_version�_advicer	r0)�dep_dictr1r2�msg�wrapped_methods    �r�cb�%_dict_deprecation_wrapper.<locals>.cb�sk����#�#�H�$;�$;�<���+�+�s�f�4������3��)�)�)�)�C��S�$��3��h�8��8��8�8rr;)r]r^s` r�_dict_deprecation_wrapperr`�s���9��Irc��\rSrSrSrSrSr\"\R5r	\"\R5r
\"\R5r\"\R5r\"\R5r
\"\R5rSrg)�DeprecatedDict��z1A dictionary that complains when read or written.Tc�R�XlX lX@l[R	X5 g)aeCreate a dict that warns when read or modified.

:param deprecation_version: string for the warning format to raise,
    typically from deprecated_in()
:param initial_value: The contents of the dict
:param variable_name: This allows better warnings to be printed
:param advice: String of advice on what callers should do instead
    of using this variable.
N)rYrXrZ�dictr?)r@r �
variable_name�
initial_value�advices     rr?�DeprecatedDict.__init__�s!�� %8�!�+�����
�
�d�*r)rZrYrXN)rrr�__firstlineno__rKrUr?r`re�__len__�__getitem__�__setitem__�__delitem__�keys�__contains__�__static_attributes__r;rrrbrb�sm��;��M�+�.(����5�G�+�D�,<�,<�=�K�+�D�,<�,<�=�K�+�D�,<�,<�=�K�$�T�Y�Y�/�D�,�T�->�->�?�Lrrbc�^^�SRT5nX4-mU(aTSU--
m"UU4SjS[5nU"U5$)a9Create a list that warns when modified.

:param deprecation_version: string for the warning format to raise,
    typically from deprecated_in()
:param initial_value: The contents of the list
:param variable_name: This allows better warnings to be printed
:param extra: Extra info to print when printing a warning
zModifying {}rJc�>�\rSrSr\R
Y-rSrU4SjrU4SjrU4Sjr	U4Sjr
U4SjrSU4S	jjrS
r
g)�(deprecated_list.<locals>._DeprecatedListiTc�:>�[T[SS9 U"U/UQ70UD6$)N�r,)r	r0)r@�funcr1r2r\s    �r�_warn_deprecated�9deprecated_list.<locals>._DeprecatedList._warn_deprecateds%�����(�Q�7���.�t�.�v�.�.rc�f>�SRT5 UR[RU5$)Nzappending to {} is deprecated)r
rx�list�append)r@�objrfs  �rr|�/deprecated_list.<locals>._DeprecatedList.appends(���/�6�6�}�E��(�(����c�:�:rc�f>�SRT5 UR[RX5$)Nzinserting to {} is deprecated)r
rxr{�insert)r@�indexr}rfs   �rr��/deprecated_list.<locals>._DeprecatedList.insert s(���/�6�6�}�E��(�(����e�A�Arc�f>�SRT5 UR[RU5$)Nzextending {} is deprecated)r
rxr{�extend)r@�iterablerfs  �rr��/deprecated_list.<locals>._DeprecatedList.extend$s(���,�3�3�M�B��(�(����h�?�?rc�f>�SRT5 UR[RU5$)Nzremoving from {} is deprecated)r
rxr{�remove)r@�valuerfs  �rr��/deprecated_list.<locals>._DeprecatedList.remove(s(���0�7�7�
�F��(�(����e�<�<rNc�>�SRT5 U(a UR[RU5$UR[R5$)Nzpop'ing from {} is deprecated)r
rxr{�pop)r@r�rfs  �rr��,deprecated_list.<locals>._DeprecatedList.pop,sB���/�6�6�}�E���,�,�T�X�X�u�=�=��,�,�T�X�X�6�6rr;�N)rrrrjr{rKrUrxr|r�r�r�r�rq)r\rfs��r�_DeprecatedListrts;����,�,��$���
�	/�	;�	B�	@�	=�	7�	7rr�)r
r{)r rfrg�extra�
subst_textr�r\s `    @rrrsO��� �&�&�}�5�J�
�
�
-�C���s�U�{���7�7�$�7�B�=�)�)rc��[RH/n[[US5(dMU(aUSS:XdM/ g g)z�Check if there is already a filter for deprecation warnings.

:param error_only: Only match an 'error' filter
:return: True if a filter is found, False otherwise
r+r
�errorTF)�warnings�filters�
issubclassr0)�
error_only�filters  r�_check_for_filterr�7s<���"�"���(�&��)�4�4�����g�!5��	#�
rc�^�U4SjnU$)z�Build and returns a callable removing filter from the warnings.

:param filter: The filter to remove (can be None).

:return: A callable that will remove filter from warnings.filters.
c�>�T(a![RRT5 gg![[4a gf=fr�)r�r�r��
ValueError�
IndexError)r�s�r�cleanup�(_remove_filter_callable.<locals>.cleanupMs=����
�� � �'�'��/����
�+�
��
�s�+�>�>r;)r�r�s` r�_remove_filter_callabler�Es�����Nrc��U(d[SS9(aSnO,[R"S[S9 [RSn[U5$)a�Call this function to suppress all deprecation warnings.

When this is a final release version, we don't want to annoy users with
lots of deprecation warnings. We only want the deprecation warnings when
running a dev or release candidate.

:param override: If True, always set the ignore, if False, only set the
    ignore if there isn't already a filter.

:return: A callable to remove the new warnings this added.
F�r�N�ignore��categoryr
�r�r��filterwarningsr0r�r���overrider�s  r�suppress_deprecation_warningsr�WsB���)�U�;�������3E�F��!�!�!�$��"�6�*�*rc��U(d[SS9(aSnO,[R"S[S9 [RSn[U5$)a�Call this function to activate deprecation warnings.

When running in a 'final' release we suppress deprecation warnings.
However, the test suite wants to see them. So when running selftest, we
re-enable the deprecation warnings.

Note: warnings that have already been issued under 'ignore' will not be
reported after this point. The 'warnings' module has already marked them as
handled, so they don't get issued again.

:param override: If False, only add a filter if there isn't an error filter
    already. (This slightly differs from suppress_deprecation_warnings, in
    because it always overrides everything but -Werror).

:return: A callable to remove the new warnings this added.
Tr�N�defaultr�r
r�r�s  r�activate_deprecation_warningsr�msB��"�)�T�:������	�4F�G��!�!�!�$��"�6�*�*rr�)T)rK�__all__r�r	rrrrr"rrrrSr8r`rerbrr�r�r�r�r;rr�<module>r�s{��"�
	����
�7����(�0�4%�P7�&-�0,��!@�T�!@�H/*�d��$+�,+r

Youez - 2016 - github.com/yon3zu
LinuXploit