AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/launchpadlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/launchpadlib/__pycache__/uris.cpython-310.pyc
o

Ʋ�a��	@s�dZeZgd�ZzddlmZWneyddlmZYnwddlZddlm	Z	dZ
dZdZd	Z
d
ZdZdZd
ZdZdZdZdZdZdZee
e
eeee
ed�Zeeeeeeeed�Zdd�Zdd�Zdd�Zdd�ZdS)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_devcCsX|dkr
t�dt�||vr||St|�\}}}}}}|dkr&|dkr&|Std|��)z3Dereference what might a URL or an alias for a URL.rzCLaunchpad 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�fragment�r�3/usr/lib/python3/dist-packages/launchpadlib/uris.py�_dereference_aliasOs��rcC�|tkrd}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_rootrrrrg�
rcCr)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_rootrrrrtr"rcCs8t|�}t|�}d|_|j�ddd�|_t|���}|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%rrrr�sr)�__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_ROOTrr#�dictr r$rrrrrrrr�<module>s\���


Anon7 - 2022
AnonSec Team