Current Dir: /snap/core22/2955/usr/share/subiquity/subiquitycore/__pycache__/

[FILE] async_helpers.cpython-310.pyc [ edit | delete | rename ]
[FILE] context.cpython-310.pyc [ edit | delete | rename ]
[FILE] controller.cpython-310.pyc [ edit | delete | rename ]
[FILE] controllerset.cpython-310.pyc [ edit | delete | rename ]
[FILE] core.cpython-310.pyc [ edit | delete | rename ]
[FILE] file_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] i18n.cpython-310.pyc [ edit | delete | rename ]
[FILE] log.cpython-310.pyc [ edit | delete | rename ]
[FILE] lsb_release.cpython-310.pyc [ edit | delete | rename ]
[FILE] netplan.cpython-310.pyc [ edit | delete | rename ]
[FILE] palette.cpython-310.pyc [ edit | delete | rename ]
[FILE] prober.cpython-310.pyc [ edit | delete | rename ]
[FILE] pubsub.cpython-310.pyc [ edit | delete | rename ]
[FILE] screen.cpython-310.pyc [ edit | delete | rename ]
[FILE] snapd.cpython-310.pyc [ edit | delete | rename ]
[FILE] ssh.cpython-310.pyc [ edit | delete | rename ]
[FILE] tui.cpython-310.pyc [ edit | delete | rename ]
[FILE] tuicontroller.cpython-310.pyc [ edit | delete | rename ]
[FILE] utils.cpython-310.pyc [ edit | delete | rename ]
[FILE] view.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2955/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�
Upload File: