HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/softwareproperties/__pycache__/sourceslist.cpython-310.pyc
o

U�7e��@sLddlmZddlmZddlmZmZddlmZdZ	Gdd�de�Z
dS)	�)�gettext)�SourceEntry)�ShortcutHandler�InvalidShortcutException)�urlparse�archive_uricseZdZ�fdd�Z�ZS)�SourcesListShortcutHandlercs�tt|�j|fi|��t|�}|jrttd�|��|j}|�|�s+ttd�|��t	t
|j�t
|j�B�|_t
|�}|j|_|j|_|�|j�|_t�d|j��|_|�t|��dS)NzInvalid sources.list line: '%s'zInvalid URI: '%s'�-)�superr�__init__r�invalidr�_�uri�is_valid_uri�list�set�
components�compsr�username�	_username�password�	_password�uri_strip_auth�SOURCESLIST_FILE_PREFIX�	_filebase�_set_source_entry�str)�self�shortcut�kwargs�entryr�parsed��	__class__��@/usr/lib/python3/dist-packages/softwareproperties/sourceslist.pyrs
z#SourcesListShortcutHandler.__init__)�__name__�
__module__�__qualname__r�
__classcell__r$r$r"r%rsrN)rr
�&softwareproperties.extendedsourceslistr�"softwareproperties.shortcuthandlerrr�urllib.parserrrr$r$r$r%�<module>s