?Qg{DdZddlmZmZddlZddlZddlZeZdZ dZ dZ e fdZ e e Z e e ZedZd Zd Zd ee ZGd dZddZdZedZeeeZdeeZdZdZdS)u< Package metadata for the ‘python-daemon’ distribution. )absolute_importunicode_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_resourcesget_distributionDistributionNotFound)name distributions p/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/daemon/_metadata.pyrrsKL $5d;;  -      s ++cdddd}|>||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_dateversion maintainer) has_metadata get_metadatajsonloads)r filename version_infocontents r get_distribution_version_infor*s_"& #L   $ $X . . /"//99G:g..L rz Ben Finneyzben+python@benfinney.id.auz{name} <{email}>)r emailc$eZdZdZddZdZeZdS) YearRangez% A range of years spanning a period. Nc"||_||_dSNbeginend)selfr r!s r __init__zYearRange.__init__Vs rcd|}|j&|j|jkrd|}|S)Nz{range.begin:04d})rangeu#{range.begin:04d}–{range.end:04d})formatr!r )r"texts r __unicode__zYearRange.__unicode__ZsJ")))55 8 x$*$$<CC$COO rr)__name__ __module__ __qualname____doc__r#r(__str__rr rrSs>//GGGrrct|} 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)intdatetimestrptimeyear TypeError ValueErrorr) begin_yearend_dateend_year year_ranges r make_year_ranger:ds|ZJ!$--h CC = z " :::J s 9AA2001ru-Copyright © {year_range} {author} and others)r9authorzApache-2z https://pagure.io/python-daemon/r)r, __future__rrr1rrtype __metaclass__distribution_nameversion_info_filenamerrr rversion_installed author_name author_emailr&r<rr:copyright_year_begin build_datecopyright_year_range copyrightlicenseurlr.rr rKs`CB::::::::  $+   " 5<  122 ,,\::  + +  " " < " H H"8 . ) &';ZHH ; B B' C 8 8 (r