File: //usr/lib/python3/dist-packages/__pycache__/distro_info.cpython-39.pyc
a
�T>e�0 � @ s� d Z ddlZddlZddlZdd� Zdd� ZG dd� de�ZG d d
� d
e�Z dd� Z
G d
d� de�ZG dd� de�ZG dd� de�Z
dS )z>provides information about Ubuntu's and Debian's distributions� Nc C s� | s
d}n�dd� | � d�D �}t|�dkrD|\}}}t�|||�}nRt|�dkr�|\}}|dkrpt�||d�}q�t�||d d �t�d � }ntd
��|S )z9Convert a date string in ISO 8601 into a datetime object.Nc S s g | ]}t |��qS � )�int��.0�xr r �-/usr/lib/python3/dist-packages/distro_info.py�
<listcomp> � z convert_date.<locals>.<listcomp>�-� � � � � zDate not in ISO 8601 format.)�split�len�datetime�date� timedelta�
ValueError)�stringr �parts�year�month�dayr r r �convert_date s
r c C s dS )z4Get the data directory based on the module location.z/usr/share/distro-infor r r r r �
_get_data_dir* s r c s e Zd ZdZ� fdd�Z� ZS )�DistroDataOutdatedzDistribution data outdated.c s t � �d� d S )Nz�Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.��super�__init__��self�� __class__r r r 2 s �zDistroDataOutdated.__init__)�__name__�
__module__�__qualname__�__doc__r �
__classcell__r r r# r r / s r c @ s"