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

p��g�3���SrSSKJr SSKJrJrJrJrJrJ	r	J
r
 SSKJr \"S5r
"SS\\
5r"S	S
\\
5r\"S5r\"S5r"S
S\\\45r\"S5r"SS\\\	\\/\4445rg)z8Classes to provide name-to-object registry-like support.�)�Iterator)�Any�Callable�Generic�Optional�TypeVar�Union�cast�)�get_named_object�Tc�L�\rSrSr%SrS/r\\S'SrS\	4Sjr
S\4SjrSrg	)
�
_ObjectGetter�#z�Maintain a reference to an object, and return the object on request.

This is used by Registry to make plain objects function similarly
to lazily imported objects.

Objects can be any sort of python object (class, function, module,
instance, etc)
�_objc��Xlg�N�r)�self�objs  �1/usr/lib/python3/dist-packages/breezy/registry.py�__init__�_ObjectGetter.__init__1s���	��returnc�.�URR$)z*Get the module the object was loaded from.)r�
__module__�rs r�
get_module�_ObjectGetter.get_module4s���y�y�#�#�#rc��UR$)z/Get the object that was saved at creation time.rrs r�get_obj�_ObjectGetter.get_obj8s���y�y�rrN)
�__name__r�__qualname__�__firstlineno__�__doc__�	__slots__r
�__annotations__r�strrr"�__static_attributes__�rrrr#s2�����I�
�G��$�C�$���rrc�T^�\rSrSrSr/SQrU4SjrSrS\4U4Sjjr	Sr
S	rU=r$)
�_LazyObjectGetter�=zIKeep a record of a possible object.

When requested, load and return it.
)�	_imported�_member_name�_module_namec�J>�XlX lSUl[TU]S5 g)NF)r2r1r0�superr)r�module_name�member_name�	__class__s   �rr�_LazyObjectGetter.__init__Es#���'��'�����
����rc��UR$)z9Get the module the referenced object will be loaded from.)r2rs rr�_LazyObjectGetter.get_moduleKs��� � � rrc�>�UR(d,[URUR5UlSUl[
TU]5$)z~Get the referenced object.

Upon first request, the object will be imported. Future requests will
return the imported object.
T)r0rr2r1rr4r")rr7s �rr"�_LazyObjectGetter.get_objOs:����~�~�(��):�):�D�<M�<M�N�D�I�!�D�N��w�� � rc���SRURRURR[	U5UR
URUR5$)Nz@<{}.{} object at {:x}, module={!r} attribute={!r} imported={!r}>)�formatr7rr$�idr2r1r0rs r�__repr__�_LazyObjectGetter.__repr__ZsO��N�U�U����)�)����'�'��4���!�!��!�!����

�		
r)r0r1r2r)
r$rr%r&r'r(rrr
r"r@r+�
__classcell__�r7s@rr.r.=s/����
>�I��!�	!��	!�

�

rr.�K�Vc��\rSrSrSrS$SjrS\\\44SjrS\\\	\44Sjr
S%S\S	\S
\\
S\\S\4
S
jjrS%S\S\
S\
S
\\
S\\S\SS4SjjrS&S\S\S\\4SjjrS'S\4SjjrS&S\\S\4SjjrSrSrS&SjrS&S\\S\\
4SjjrS&SjrSrSrSrS\\\\44SjrSr Sr!S r"\#"\"\!S!S"9r$S#r%g)(�Registry�ka�A class that registers objects to a name.

There are many places that want to collect related objects and access them
by a key. This class is designed to allow registering the mapping from key
to object. It goes one step further, and allows registering a name to a
hypothetical object which has not been imported yet. It also supports
adding additional information at registration time so that decisions can be
made without having to import the object (which may be expensive).

The functions 'get', 'get_info', and 'get_help' also support a
'default_key' (settable through my_registry.default_key = XXX, XXX must
already be registered.) Calling my_registry.get() or my_registry.get(None),
will return the entry for the default key.
rNc�J�SUl0Ul0Ul0Ul0Ulg)zCreate a new Registry.N)�_default_key�_dict�_aliases�
_help_dict�
_info_dictrs rr�Registry.__init__{s-�� ���02��
�$&��
�
�	
��)+��rc�H�[URR55$)z3Return a set of the format names which are aliases.)�dictrL�itemsrs r�aliases�Registry.aliases�s���D�M�M�'�'�)�*�*rc��0nURR5H&up#URU/5RU5 M( U$r)rLrR�
setdefault�append)r�ret�alias�targets    r�	alias_map�Registry.alias_map�s>�� "��!�]�]�0�0�2�M�E��N�N�6�2�&�-�-�e�4�3��
r�keyr�help�info�override_existingc���U(d)XR;a[SRU55e[["U5URU'URXUS9 g)a�Register a new object to a name.

:param key: This is the key to use to request the object later.
:param obj: The object to register.
:param help: Help text for this entry. This may be a string or
        a callable. If it is a callable, it should take two
        parameters (registry, key): this registry and the key that
        the help was registered under.
:param info: More information for this entry. Registry.get_info()
        can be used to get this information. Registry treats this as an
        opaque storage location (it is defined by the caller).
:param override_existing: Raise KeyErorr if False and something has
        already been registered for that key. If True, ignore if there
        is an existing key (always register the new value).
�Key {!r} already registered�r^r_N)rK�KeyErrorr>rrE�_add_help_and_info�rr]rr^r_r`s      r�register�Registry.register�sR��.!��j�j� ��<�C�C�C�H�I�I�'��*�3�/��
�
�3������T��:rr5r6c���U(d)XR;a[SRU55e[["X#5URU'URXUS9 g)aRegister a new object to be loaded on request.

:param key: This is the key to use to request the object later.
:param module_name: The python path to the module. Such as 'os.path'.
:param member_name: The member of the module to return.  If empty or
        None, get() will return the module itself.
:param help: Help text for this entry. This may be a string or
        a callable.
:param info: More information for this entry. Registry.get_info()
        can be used to get this information. Registry treats this as an
        opaque storage location (it is defined by the caller).
:param override_existing: If True, replace the existing object
        with the new one. If False, if there is already something
        registered with the same key, raise a KeyError
rbrcN)rKrdr>r.rEre�rr]r5r6r^r_r`s       r�
register_lazy�Registry.register_lazy�sR��0!��j�j� ��<�C�C�C�H�I�I�+�A�.�{�H��
�
�3������T��:rrZc�&�XR;a)XR;a[SRU55eURUURU'X RU'UcURUnURXRUUS9 g)zJRegister an alias.

:param key: Alias name
:param target: Target key name
z,Key {!r} already registered and not an aliasNrc)rKrLrdr>rNrerM)rr]rZr_s    r�register_alias�Registry.register_alias�s����*�*���M�M�!9��I�P�P�QT�U�V�V��*�*�V�,��
�
�3��#�
�
�c���<��?�?�6�*�D�����/�/�&�*A���Mrc�<�X RU'X0RU'g)z,Add the help and information about this key.N)rMrN)rr]r^r_s    rre�Registry._add_help_and_info�s��#�����#����rc�v�[[URURU5R	55$)a�Return the object register()'ed to the given key.

May raise ImportError if the object was registered lazily and
there are any problems, or AttributeError if the module does not
have the supplied member.

:param key: The key to obtain the object for. If no object has been
    registered to that key, the object registered for self.default_key
    will be returned instead, if it exists. Otherwise KeyError will be
    raised.
:return: The previously registered object.
:raises ImportError: If the object was registered lazily, and there are
    problems during import.
:raises AttributeError: If registered lazily, and the module does not
    contain the registered member.
)r
rErK�_get_key_or_defaultr"�rr]s  r�get�Registry.get�s.��"�A�t�z�z�$�":�":�3�"?�@�H�H�J�K�Krc�<�URUR5$)z�Return the module the object will be or was loaded from.

:param key: The key to obtain the module for.
:return: The name of the module
)rKrrts  r�_get_module�Registry._get_module�s���z�z�#��)�)�+�+rc��UR5H:nURU5(dMURU5U[U5S4s $ g)z�Return an object whose key is a prefix of the supplied value.

:fullname: The name to find a prefix for
:return: a tuple of (object, remainder), where the remainder is the
    portion of the name that did not match the key.
N)�keys�
startswithru�len)r�fullnamer]s   r�
get_prefix�Registry.get_prefix�sC���9�9�;�C��"�"�3�'�'��x�x��}�h�s�3�x�z�&:�:�:�rc�T�UbU$URc[S5eUR$)z6Return either 'key' or the default key if key is None.z&Key is None, and no default key is set)�default_keyrdrts  rrs�Registry._get_key_or_defaults0���?��J����#��C�D�D��#�#�#rc�r�URURU5n[U5(aU"X5$U$)z0Get the help text associated with the given key.)rMrs�callable)rr]�the_helps   r�get_help�Registry.get_helps6���?�?�4�#;�#;�C�#@�A���H����D�&�&��rc�>�URURU5$)z8Get the extra information associated with the given key.)rNrsrts  r�get_info�Registry.get_infos�����t�7�7��<�=�=rc��URU	g)z\Remove a registered entry.

This is mostly for the test suite, but it can be used by others
N�rKrts  r�remove�Registry.removes��

�J�J�s�Orc��XR;$rr�rts  r�__contains__�Registry.__contains__s���j�j� � rc�,�[UR5$)z!Get a list of registered entries.)�sortedrKrs rr{�
Registry.keys!s���d�j�j�!�!rc#�r# �URH#nXRUR54v� M% g7fr)rKr"rts  r�	iteritems�Registry.iteritems%s-����:�:�C��z�z�#��.�.�0�0�0��s�57c��UR5Vs/sH!oURUR54PM# sn$s snfr)r{rKr"rts  rrR�Registry.items)s7��=A�I�I�K�H�K�S�d�j�j��o�-�-�/�0�K�H�H��Hs�(>c�b�XR;a[SRU55eXlg)Nz"No object registered under key {}.)rKrdr>rJrts  r�_set_default_key�Registry._set_default_key.s)���j�j� ��?�F�F�s�K�L�L� #�rc��UR$r)rJrs r�_get_default_key�Registry._get_default_key4s��� � � rzACurrent value of the default key. Can be set to any existing key.)�doc)rLrJrKrMrN)rN�NNFr)NN)&r$rr%r&r'rrQrDrS�listr[rErr*r�boolrgrkrnrerurxrrsr�r�r�r�r{r�tupler�rRr�r��propertyr�r+r,rrrGrGks���
�+�+��a��d��+��4��4��7�
�+��#�"�"'�
;�
�;��;��s�m�	;�
�s�m�;� �
;�D#�"�"'�;�
�;��;��	;�
�s�m�;��s�m�
;� �;�
�;�<N�!�N�Q�N�h�s�m�N�$�a�$�
L�x��{�L�a�L�&,�	;�$��H�Q�K��8�C�=��>��!�"�1�8�E�!�Q�$�K�0�1�I�
$�!����O��KrrG�Formatc�\^�\rSrSrSrS	U4SjjrS
SjrS
SjrU4SjrSr	Sr
U=r$)�FormatRegistryiAz*Registry specialised for handling formats.c�.>�[TU]5 Xlgr)r4r�_other_registry)r�other_registryr7s  �rr�FormatRegistry.__init__Ds���
����-�rc	��[RXX#XES9 URbURRXX4US9 gg�N)r^r_r`)rGrgr�rfs      rrg�FormatRegistry.registerHsP������s�D�	�	
����+�� � �)�)��t�BS�
*�
�,rc
��[RUUUUUUUS9 URbURRUUUUUUS9 ggr�)rGrkr�rjs       rrk�FormatRegistry.register_lazyQsj��	���������/�	�	
����+�� � �.�.������"3�

/�
�,rc�v>�[TU]U5 URbURRU5 ggr)r4r�r�)rr]r7s  �rr��FormatRegistry.removeos4���
���s�����+�� � �'�'��,�,rc�^�[RX5n[U5(aU"5nU$r)rGrur�)r�
format_string�rs   rru�FormatRegistry.getts%���L�L��-���A�;�;���A��r)r�rr�)r$rr%r&r'rrgrkr�rur+rBrCs@rr�r�As/���4�.���
���<-�
�rr�N)r'�collections.abcr�typingrrrrrr	r
�pyutilsrr
rr.rDrErGr�r*r�r,rr�<module>r�s���"?�$����&��C�L���G�A�J��4'
�
�a�(�'
�T�C�L���C�L��P�w�q�!�t�}�P�f
��	��7�X�c�5���"�f�*�1E�)E�#F�F�G�7r

Youez - 2016 - github.com/yon3zu
LinuXploit