403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.36
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/launchpadlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/launchpadlib/__pycache__/uris.cpython-312.pyc
�

Ʋ�a��	���dZeZgd�Z	ddlmZddlZddlm	Z	dZ
dZdZd	Z
d
ZdZdZd
ZdZdZdZdZdZdZee
e
eeee
e��Zeeeeeeee��Zd�Zd�Zd�Zd�Zy#e$r	ddlmZY�^wxYw)z�Launchpad-specific URIs and convenience lookup functions.

The code in this module lets users say "staging" when they mean
"https://api.staging.launchpad.net/".
)�lookup_service_root�lookup_web_root�web_root_for_service_root�)�urlparseN)�URIzhttps://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/zhttps://launchpad.net/z https://qastaging.launchpad.net/zhttps://staging.launchpad.net/zhttps://launchpad.test/zhttps://dogfood.paddev.net/zhttp://launchpad.test:8085/zhttps://api.edge.launchpad.net/zhttps://edge.launchpad.net/)�
production�edge�	qastaging�staging�dogfood�dev�test_devc��|dk(rtjdt�||vr||St|�\}}}}}}|dk7r|dk7r|St	d|z��)z3Dereference what might a URL or an alias for a URL.r	zCLaunchpad edge server no longer exists. Using 'production' instead.�z:%s is not a valid URL or an alias for any Launchpad server)�warnings�warn�DeprecationWarningr�
ValueError)�root�aliases�scheme�netloc�path�
parameters�query�fragments        �3/usr/lib/python3/dist-packages/launchpadlib/uris.py�_dereference_aliasrOst���v�~��
�
�.�
�	
��w���t�}��;C�4�.�7�V�V�T�:�u�h�
��|��"�����G�$�N���c�8�|tk(rd}t|t�S)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.
    r	)�EDGE_SERVICE_ROOTr�
service_roots)�service_roots rrrgs���(�(����l�M�:�:rc�8�|tk(rd}t|t�S)z�Dereference an alias to a website 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.
    r	)�
EDGE_WEB_ROOTr�	web_roots)�web_roots rrrts���=� ����h�	�2�2rc��t|�}t|�}d|_|jj	ddd�|_t|j
��}|S)zeTurn a service root URL into a web root URL.

    This is done heuristically, not with a lookup.
    rzapi.�)rrr�host�replace�str�ensureSlash)r#�web_root_urir's   rrr�sU��
'�|�4�L��|�$�L��L��$�)�)�1�1�&�"�a�@�L���<�+�+�-�.�H��Or)�__doc__�type�
__metaclass__�__all__�urllib.parser�ImportErrorr�lazr.urir�LPNET_SERVICE_ROOT�QASTAGING_SERVICE_ROOT�STAGING_SERVICE_ROOT�DEV_SERVICE_ROOT�DOGFOOD_SERVICE_ROOT�TEST_DEV_SERVICE_ROOT�LPNET_WEB_ROOT�QASTAGING_WEB_ROOT�STAGING_WEB_ROOT�DEV_WEB_ROOT�DOGFOOD_WEB_ROOT�TEST_DEV_WEB_ROOTr!r%�dictr"r&rrrr�rr�<module>rDs���"��
���
"�%���1��?��;��0��8��9��)��7��3��(��0��1��
6��-�
��!�	�$� � ��
"��
�
��	� ����
�
�	��0
;�
3�
��E�"�!�"�s�A!�!A/�.A/

Youez - 2016 - github.com/yon3zu
LinuXploit