| Server IP : 217.160.0.212 / Your IP : 216.73.216.6 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u119869361 ( 9600978) PHP Version : 8.4.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/lib/python3/dist-packages/breezy/plugins/launchpad/__pycache__/ |
Upload File : |
�
p��g� � �� � S r SSKJrJr SrSSSSSS .r\R
5 V s/ s H n S
R U 5 PM sn rSr Sr
S
rSrSr
Sr\ \ \
\\
\\S.rS rS rS rgs sn f )zLaunchpad URIs.� )�urlparse�
urlunparse�
productionz
launchpad.netzstaging.launchpad.netzqastaging.launchpad.netzdemo.launchpad.netzlaunchpad.test)r �staging� qastaging�demo�testz bazaar.{}zhttps://api.launchpad.net/z$https://api.qastaging.launchpad.net/z"https://api.staging.launchpad.net/zhttps://api.launchpad.test/zhttps://api.dogfood.paddev.net/zhttp://api.launchpad.test:8085/)r �edger r �dogfood�dev�test_devc � � U [ ; a [ U $ [ U 5 u pp4pVUS:w a US:w a U $ [ SR U 5 5 e)z�Dereference an alias to a service root.
A recognized server alias such as "staging" gets turned into the
appropriate URI. A URI gets returned as is. Any other string raises a
ValueError.
� z:{} is not a valid URL or an alias for any Launchpad server)�
service_rootsr �
ValueError�format)�root�scheme�netloc�path�
parameters�query�fragments �?/usr/lib/python3/dist-packages/breezy/plugins/launchpad/uris.py�lookup_service_rootr 7 sY � � �}���T�"�"� ;C�4�.�7�V�T�u�
��|��"���� �D�K�K�D�Q�� � c � � [ U 5 n [ U 5 nUR SS9nUR UR R SSS5 S9n[ U5 $ )z]Turn a service root URL into a web root URL.
This is done heuristically, not with a lookup.
r )r �api.� )r )r r �_replacer �replacer )�service_root�web_root_uris r �web_root_for_service_rootr$ L se � �
'�|�4�L��L�)�L��(�(�b�(�1�L��(�(��"�"�*�*�6�2�q�9� )� �L� �l�#�#r c �� � [ [ U R 5 5 u pp4pVSR UR S5 SS 5 nUR SS5 n[
XX4XV45 $ )z&Return the canonical URL for a branch.�/� Nr zcode.)r �str� self_link�join�splitr! r )�objectr r r �paramsr r s r �
canonical_urlr. Z s] � �4<�S��AQ�AQ�=R�4S�1�F�D�%��8�8�D�J�J�s�O�A�B�'�(�D�
�^�^�F�G�
,�F��v�t�U�E�F�Fr N)�__doc__�urllib.parser r �DEFAULT_INSTANCE�LAUNCHPAD_DOMAINS�valuesr �LAUNCHPAD_BAZAAR_DOMAINS�LPNET_SERVICE_ROOT�QASTAGING_SERVICE_ROOT�STAGING_SERVICE_ROOT�DEV_SERVICE_ROOT�DOGFOOD_SERVICE_ROOT�TEST_DEV_SERVICE_ROOTr r r$ r. )�domains 0r �<module>r<