HEX
Server: nginx/1.18.0
System: Linux vps-9dcdb12e 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.24
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: //lib/python3/dist-packages/landscape/lib/__pycache__/os_release.cpython-310.pyc
o

AGh,�@s0dZddlZdZdZddddd	�Zdd
d�ZdS)
z Get information from os-release.�Nz/etc/os-releasez/usr/lib/os-releasezdistributor-id�description�releasez	code-name)�NAME�PRETTY_NAME�
VERSION_ID�VERSION_CODENAMEcCs�i}|durt}tj�|�rt�|tj�st}t|��*}|D]}|�d�\}}|t	vr<t	|�
�}|�
��
d�}|||<qWd�|S1sHwY|S)ad
    Returns a C{dict} holding information about the system LSB release
    by attempting to parse C{os_release_filename} if specified. If no
    filename is provided /etc/os-release will be used or
    /usr/lib/os-release as a fallback as indicated in os-release
    at Freedesktop.org

    @raises: A FileNotFoundError if C{filename} does not exist.
    N�=�")�OS_RELEASE_FILENAME�os�path�exists�access�R_OK�OS_RELEASE_FILENAME_FALLBACK�open�split�OS_RELEASE_FILE_KEYS�strip)�os_release_filename�info�fd�line�key�value�r�:/usr/lib/python3/dist-packages/landscape/lib/os_release.py�parse_os_releases*
�
��
�	�	r)N)�__doc__rr
rrrrrrr�<module>s�