Your IP : 3.139.93.242


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/daemon/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/daemon/__pycache__/_metadata.cpython-311.pyc

�

R�Dg{��D�dZddlmZmZddlZddlZddlZeZdZ	dZ
d�Ze
fd�Zee	��Z
ee
��ZedZd	Zd
Zd�ee���ZGd
�d��Zdd�ZdZedZeee��Zd�ee���ZdZdZdS)u< Package metadata for the ‘python-daemon’ distribution. �)�absolute_import�unicode_literalsNz
python-daemonzversion_info.jsonc�`�d}	tj|��}n#tj$rYnwxYw|S)z� Get the `Distribution` instance for distribution `name`.

        :param name: The distribution name for the query.
        :return: The `pkg_resources.Distribution` instance, or
            ``None`` if the distribution instance is not found.
        N)�
pkg_resources�get_distribution�DistributionNotFound)�name�distributions  �p/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/daemon/_metadata.pyrrsK���L�
�$�5�d�;�;�����-�
�
�
���
�����s��+�+c��dddd�}|�>|�|��r)|�|��}tj|��}|S)a= Get the version info from the installed distribution.

        :param distribution: The `pkg_resources.Distribution` instance
            representing the Python package to interrogate.
        :param filename: Base filename of the version info resource.
        :return: The version info as a mapping of fields.

        The version info is stored as a metadata file in the
        `distribution`.

        If the `distribution` is ``None``, or the version info
        metadata file is not found, the return value mapping fields
        have placeholder values.
        �UNKNOWN)�release_date�version�
maintainer)�has_metadata�get_metadata�json�loads)r
�filename�version_info�contents    r�get_distribution_version_infor*s_��"&� �#���L����$�$�X�.�.�	/�"�/�/��9�9�G��:�g�.�.�L���rz
Ben Finneyzben+python@benfinney.id.auz{name} <{email}>)r	�emailc�$�eZdZdZdd�Zd�ZeZdS)�	YearRangez% A range of years spanning a period. Nc�"�||_||_dS�N��begin�end)�selfr r!s   r�__init__zYearRange.__init__Vs����
�����rc��d�|���}|j�&|j|jkrd�|���}|S)Nz{range.begin:04d})�rangeu#{range.begin:04d}–{range.end:04d})�formatr!r )r"�texts  r�__unicode__zYearRange.__unicode__ZsJ��"�)�)��)�5�5���8���x�$�*�$�$�<�C�C�$�C�O�O���rr)�__name__�
__module__�__qualname__�__doc__r#r(�__str__�rrrrSs>������/�/���������G�G�Grrc���t|��}	tj�|d��}|j}n#tt
f$rd}YnwxYwt
||���}|S)a� Construct the year range given a start and possible end date.

        :param begin_year: The beginning year (text, 4 digits) for the
            range.
        :param end_date: The end date (text, ISO-8601 format) for the
            range, or a non-date token string.
        :return: The range of years as a `YearRange` instance.

        If the `end_date` is not a valid ISO-8601 date string, the
        range has ``None`` for the end year.

        z%Y-%m-%dNr)�int�datetime�strptime�year�	TypeError�
ValueErrorr)�
begin_year�end_date�end_year�
year_ranges    r�make_year_ranger:ds|���Z���J�!��$�-�-�h�
�C�C��
�=����	
�z�"���������������:�:�:�J��s� 9�A�A�2001ru-Copyright © {year_range} {author} and others)r9�authorzApache-2z https://pagure.io/python-daemon/r)r,�
__future__rrr1rr�type�
__metaclass__�distribution_name�version_info_filenamerrr
r�version_installed�author_name�author_emailr&r<rr:�copyright_year_begin�
build_date�copyright_year_range�	copyright�license�urlr.rr�<module>rKs`��C�B�:�:�:�:�:�:�:�:��������������
�$��+��
�
�
�" 5�����< �� 1�2�2��,�,�\�:�:�� ��+����+��	�	"�	"��<�	"�	H�	H����������"����8��
�.�
)�
�&��';�Z�H�H��;�B�B�'��
C�
8�
8�	�
��(���r

?>