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: //snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/lsb_release.cpython-310.pyc
o

K��^��@s:ddlZdZdZd	defdd�Zedkree��dSdS)
�Nz/etc/lsb-releasezexamples/lsb-release-focalF�dry_runc	Cs�|r
|dur
td��|dur|rtnt}i}zt|d��}|��}Wd�n1s+wYWnty<|YSwt�|�D]}|�d�\}}}|�	d�rS|sTqB|||�
dd���<qB|S)zjreturn a dictionary of values from /etc/lsb-release.
    keys are lower case with DISTRIB_ prefix removed.Nz$Both dry_run and path are specified.�r�=�DISTRIB_�)�
ValueError�LSB_RELEASE_EXAMPLE�LSB_RELEASE_FILE�open�read�FileNotFoundError�shlex�split�	partition�
startswith�replace�lower)	�pathr�ret�fp�content�tok�k�_�v�r�1/usr/share/subiquity/subiquitycore/lsb_release.py�lsb_releases&
���r�__main__)NF)r
r	r�boolr�__name__�printrrrr�<module>s�