File: //usr/lib/python3/dist-packages/__pycache__/distro_info.cpython-311.pyc
�
�>e9 � � � d Z ddlZddlZddlZddlZdedej fd�Zdefd�Z G d� de � � Z
G d � d
� � Zdeeef dedej
ej fd
�Z G d� d� � Z G d� de� � Z G d� de� � ZdS )z>provides information about Ubuntu's and Debian's distributions� N�string�returnc � � d� | � d� � D � � }t |� � dk r|\ }}}t j |||� � S t |� � dk rO|\ }}|dk rt j ||d� � S t j ||dz d� � t j d� � z
S t d� � �) z9Convert a date string in ISO 8601 into a datetime object.c �, � g | ]}t |� � ��S � )�int��.0�xs �-/usr/lib/python3/dist-packages/distro_info.py�
<listcomp>z convert_date.<locals>.<listcomp> s � �/�/�/��S��V�V�/�/�/� �-� � � � � zDate not in ISO 8601 format.)�split�len�datetime�date� timedelta�
ValueError)r �parts�year�month�days r �convert_dater s� � �/�/�V�\�\�#�.�.�/�/�/�E�
�5�z�z�Q���"���u�c��}�T�5�#�.�.�.�
�5�z�z�Q����
��u��B�;�;��=��u�b�1�1�1��}�T�5�1�9�a�0�0�8�3E�a�3H�3H�H�H�
�3�
4�
4�4r c � � dS )z4Get the data directory based on the module location.z/usr/share/distro-infor r r r �
_get_data_dirr! % s � �#�#r c �$ � � e Zd ZdZd� fd�Z� xZS )�DistroDataOutdatedzDistribution data outdated.r Nc �J �� 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__s �r r'