403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

p��g��r�SrSSKrSSKJr SSKJr "SS\5r\"5rSrS
S	jrS
r	Sr
SSjrg)zUI location string handling.�N�)�urlutils)�Hooksc��\rSrSrSrSrSrg)�
LocationHooks�zGDictionary mapping hook name to a list of callables for location hooks.c��[R"USS5 URSSS5 URSSS5 g)	Nzbreezy.location�hooks�rewrite_urlzPPossibly rewrite a URL. Called with a URL to rewrite and the purpose of the URL.)�r�rewrite_locationzaPossibly rewrite a location. Called with a location string to rewrite and the purpose of the URL.)r�)r�__init__�add_hook)�selfs �1/usr/lib/python3/dist-packages/breezy/location.pyr�LocationHooks.__init__sC��
���t�.��8��
�
��
"��		
�	
�
�
��
2��		
��N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__rrrrrs
��Q�

rrc�N�[R"SU5nU(d[S5eURS5R	S5(a[S5eURS5URS5(aURS5SS	OSURS54$)
��Convert a rcp-style location to a URL.

:param location: Location to convert, e.g. "foo:bar"
:param scheme: URL scheme to return, defaults to "ssh"
:return: A URL, e.g. "ssh://foo/bar"
:raises ValueError: if this is not a RCP-style URL
z5^(?P<user>[^@:/]+@)?(?P<host>[^/:]{2,}):(?P<path>.*)$z
Not a RCP URL�pathz//z'Not a RCP URL: already looks like a URL�host�userN���)�re�match�
ValueError�group�
startswith)�location�ms  r�parse_rcp_locationr)0s���	���H�(�S�A����)�)��w�w�v��!�!�$�'�'��B�C�C�	����� !��������������T�	������rc
���[U5up#nU(a[R"U5OSn[R"UUSS[R"U5[R"U5S9n[	U5$)rN)�scheme�quoted_user�port�quoted_password�quoted_host�quoted_path)r)r�quote�URL�str)r'r+rr rr,�urls       r�rcp_location_to_urlr5Dsb��,�H�5��T��*.�(�.�.��&�D�K�
�,�,���
���N�N�4�(��N�N�4�(�
�C��s�8�Orc�<�URS5nUS(d	USS;a[S5eUSRSS5up#USnUS:XaS	nUS
nXCX%4$![a
 USnSnN*f=f![a [SRU55ef=f)N�:rr)�pserver�ssh�extsshznot a valid CVS location stringr�@r:r9rz"no path element in CVS location {})�splitr$�
IndexError�format)r'�parts�username�hostnamer+rs      r�parse_cvs_locationrBYs����N�N�3��E��Q�x�5��8�#?�?��:�;�;��$�Q�x�~�~�c�1�5����1�X�F�
�����P��Q�x��
�h�-�-������8�������P��=�D�D�X�N�O�O�P�s�A�A6�A3�2A3�6%Bc�T�[U5upp4[	[R
"SU-U(a[R"U5OS[R"U5SS[R"U5S95$![a#n[R"U[	U5S9eSnAff=f)ziConvert a CVS pserver location string to a URL.

:param location: pserver URL
:return: A cvs+pserver URL
�r�extraNzcvs+)r+r,r/r.r-r0)rBr$r�
InvalidURLr3r2r1)r'r+rr r�es      r�
cvs_to_urlrHls���?�%7��%A�"��t������F�?�04����t�,�$� ���t�,� �� ���t�,�
	
�	�	���?��!�!�x�s�1�v�>�>��?�s�A:�:
B'�B"�"B'c�|�[U[5(d[S5e[SH	nU"XS9nM UR	S5(dUR	S5(a[U5$SSKJn URX5nURS5nURS5nUR	S5(aDUR	S5(d.[R "[R"S
5USS5$[#USS9nU$![aI [R"U5(a[R"US	S
9e[R"U5nN�f=f![$a Of=f[R"U5(d[R"U5$[SH	nU"XS9nM U$)a�Determine a fully qualified URL from a location string.

This will try to interpret location as both a URL and a directory path. It
will also lookup the location in directories.

:param location: Unicode or byte string object with a location
:param purpose: Intended method of access (None, 'read' or 'write')
:raise InvalidURL: If the location is already a URL, but not valid.
:return: Byte string with resulting URL
z%location not a byte or unicode stringr
)�purposez	:pserver:z:extssh:r)�directories�asciizURLs must be properly escapedrDzfile:zfile://�.�Nr9)r+r)�
isinstancer3�AssertionErrorr
r&rH�directory_servicerK�dereference�encode�decode�UnicodeErrorr�is_urlrF�local_path_to_url�joinr5r$)r'rJ�hookrKr4s     r�location_to_urlrZ�s����h��$�$��D�E�E��(�)����2��*����;�'�'�8�+>�+>�z�+J�+J��(�#�#�.��&�&�x�9�H�	,��?�?�7�+���?�?�7�+�����7�#�#�H�,?�,?�	�,J�,J��}�}�X�7�7��<�h�q�r�l�K�K��!�(�5�9���
��#�8��?�?�8�$�$��%�%��%D��
��-�-�h�7��8���
��
��
�?�?�8�$�$��)�)�(�3�3��m�$����2��%��Os%�D�
E%�AE"�!E"�%
E2�1E2)r9)N)rr"�rr
rrr)r5rBrHrZrrr�<module>r\sA��$#�	���
�E�
�&	����(�*.�&�,4r

Youez - 2016 - github.com/yon3zu
LinuXploit