Viewing File: /opt/alt/python35/lib/python3.5/site-packages/daemon/__pycache__/_metadata.cpython-35.opt-1.pyc



^¬V¯ã@sFdZddlmZmZddlZddlZddlZddlZddlZdZ	dZ
e
dd„ZeƒZedZ
ejd	ƒZejd
ddgƒZd
d„ZdZdZdjdedeƒZGdd„dƒZddd„ZdZedZeeeƒZdjdedeƒZdZdZdS)u< Package metadata for the ‘python-daemon’ distribution. é)Úabsolute_importÚunicode_literalsNz
python-daemonzversion_info.jsoncCs†ddddddi}ytjtƒ}Wntjk
rHd}YnX|dk	r‚|jtƒr‚|jtƒ}tj|ƒ}|S)a\ Get the version info from the installed distribution.

        :param filename: Base filename of the version info resource.
        :return: The version info as a mapping of fields. If the
            distribution is not available, the mapping is empty.

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

        Úrelease_dateZUNKNOWNÚversionZ
maintainerN)	Ú
pkg_resourcesZget_distributionÚdistribution_nameZDistributionNotFoundZhas_metadataÚversion_info_filenameZget_metadataÚjsonÚloads)ÚfilenameÚversion_infoZdistributionZcontent©r
ú
/_metadata.pyÚget_distribution_version_infosrrz$^(?P<name>[^<]+) <(?P<email>[^>]+)>$ÚParsedPersonÚnameÚemailcCspd}tj|ƒ}t|ƒrl|dk	rWtd|jdƒd|jdƒƒ}ntd|ddƒ}|S)a- Parse a person field into name and email address.

        :param value: The text value specifying a person.
        :return: A 2-tuple (name, email) for the person's details.

        If the `value` does not match a standard person with email
        address, the `email` item is ``None``.

        Nrr)NN)Úrfc822_person_regexÚmatchÚlenrÚgroup)ÚvalueÚresultrr
r
rÚparse_person_fieldCs
rz
Ben Finneyzben+python@benfinney.id.auz{name} <{email}>c@s7eZdZdZddd„Zdd„ZeZdS)Ú	YearRangez% A range of years spanning a period. NcCs||_||_dS)N)ÚbeginÚend)Úselfrrr
r
rÚ__init__bs	zYearRange.__init__cCsIdjd|ƒ}|jdk	rE|j|jkrEdjd|ƒ}|S)Nz{range.begin:04d}Úrangeu#{range.begin:04d}–{range.end:04d})Úformatrr)rÚtextr
r
rÚ__unicode__fs
zYearRange.__unicode__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr"Ú__str__r
r
r
rr_src
Csht|ƒ}ytjj|dƒ}Wnttfk
rEd}Yn
X|j}td|d|ƒ}|S)a² Construct the year range given a start and possible end date.

        :param begin_date: The beginning year (text) 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-%dNrr)ÚintÚdatetimeÚstrptimeÚ	TypeErrorÚ
ValueErrorZyearr)Z
begin_yearZend_dateZend_yearÚ
year_ranger
r
rÚmake_year_rangeps	r.Z2001ru-Copyright © {year_range} {author} and othersr-ÚauthorzApache-2z1https://alioth.debian.org/projects/python-daemon/)r&Z
__future__rrr	ÚreÚcollectionsr)rrrrrZversion_installedÚcompilerÚ
namedtuplerrZauthor_nameZauthor_emailr r/rr.Zcopyright_year_beginZ
build_dateZcopyright_year_rangeÚ	copyrightÚlicenseZurlr
r
r
rÚ<module>
s6	
	
	
Back to Directory File Manager