Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.6/site-packages/attr/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/attr/__pycache__/_version_info.cpython-36.pyc

3

"��cI�@sNddlmZddlmZddlmZmZeeddddd�Gdd	�d	���Zd
S)�)�total_ordering�)�astuple)�attrib�attrsFT)�eq�order�slots�frozenc@s\eZdZdZeed�Zeed�Zeed�Zee	d�Z
edd��Zdd�Z
dd�Zd	d
�ZdS)�VersionInfoa�
    A version object that can be compared to tuple of length 1--4:

    >>> attr.VersionInfo(19, 1, 0, "final")  <= (19, 2)
    True
    >>> attr.VersionInfo(19, 1, 0, "final") < (19, 1, 1)
    True
    >>> vi = attr.VersionInfo(19, 2, 0, "final")
    >>> vi < (19, 1, 1)
    False
    >>> vi < (19,)
    False
    >>> vi == (19, 2,)
    True
    >>> vi == (19, 2, 1)
    False

    .. versionadded:: 19.2
    )�typecCsL|jd�}t|�dkr |jd�|t|d�t|d�t|d�|dd�S)z6
        Parse *s* and return a _VersionInfo.
        �.��finalrr�)�year�minor�micro�releaselevel)�split�len�append�int)�cls�s�v�r�3/tmp/pip-build-_uu8ur7s/attrs/attr/_version_info.py�_from_version_string&s


z VersionInfo._from_version_stringcCsZ|j|jkrt|�}t|t�s"t�dt|�ko8dknsBt�t|�dt|��|fS)z�
        Ensure *other* is a tuple of a valid length.

        Returns a possibly transformed *other* and ourselves as a tuple of
        the same length as *other*.
        r�N)�	__class__r�
isinstance�tuple�NotImplementedErrorr)�self�otherrrr�
_ensure_tuple3s
zVersionInfo._ensure_tuplecCs0y|j|�\}}Wntk
r&tSX||kS)N)r&r#�NotImplemented)r$r%�us�themrrr�__eq__Fs
zVersionInfo.__eq__cCs0y|j|�\}}Wntk
r&tSX||kS)N)r&r#r')r$r%r(r)rrr�__lt__Ns
zVersionInfo.__lt__N)�__name__�
__module__�__qualname__�__doc__rrrrr�strr�classmethodrr&r*r+rrrrr
s




rN)�	functoolsrZ_funcsr�_makerrrrrrr�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists