AlkantarClanX12
Current Path : /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/ |
Current File : //usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyc |
� �fc @` s< d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z m Z m Z d e f d � � YZ d e e j e � f d � � YZ d e f d � � YZ d e f d � � YZ d � Z d e f d � � YZ e j d � Z d � Z d � Z d e f d � � YZ d S( i ( t absolute_importt divisiont print_functionNi ( t string_typest with_metaclass( t Versiont LegacyVersiont parset InvalidSpecifierc B` s e Z d Z RS( sH An invalid specifier was found, users should refer to PEP 440. ( t __name__t __module__t __doc__( ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyR s t BaseSpecifierc B` s� e Z e j d � � Z e j d � � Z e j d � � Z e j d � � Z e j d � � Z e j d � � Z e j d d � � Z e j d d � � Z RS( c C` s d S( s� Returns the str representation of this Specifier like object. This should be representative of the Specifier itself. N( ( t self( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt __str__ t c C` s d S( sF Returns a hash value for this Specifier like object. N( ( R ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt __hash__ R c C` s d S( sq Returns a boolean representing whether or not the two Specifier like objects are equal. N( ( R t other( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt __eq__$ R c C` s d S( su Returns a boolean representing whether or not the two Specifier like objects are not equal. N( ( R R ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt __ne__+ R c C` s d S( sg Returns whether or not pre-releases as a whole are allowed by this specifier. N( ( R ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt prereleases2 R c C` s d S( sd Sets whether or not pre-releases as a whole are allowed by this specifier. N( ( R t value( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyR 9 R c C` s d S( sR Determines if the given item is contained within this specifier. N( ( R t itemR ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt contains@ R c C` s d S( s� Takes an iterable of items and filters them so that only items which are contained within this specifier are allowed in it. N( ( R t iterableR ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt filterF R N( R R t abct abstractmethodR R R R t abstractpropertyR t settert NoneR R ( ( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyR s t _IndividualSpecifierc B` s� e Z i Z d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � � Z e d � � Z e d � � Z e j d � � Z d � Z d d � Z d d � Z RS( R c C` sj | j j | � } | s0 t d j | � � � n | j d � j � | j d � j � f | _ | | _ d S( Ns Invalid specifier: '{0}'t operatort version( t _regext searchR t formatt groupt stript _spect _prereleases( R t specR t match( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt __init__R s c C` sF | j d k r! d j | j � n d } d j | j j t | � | � S( Ns , prereleases={0!r}R s <{0}({1!r}{2})>( R( R R$ R t __class__R t str( R t pre( ( sK /usr/lib/python2.7/site-packages/setuptools/_vendor/packaging/specifiers.pyt __repr___ s ! c C` s d j | j � S( Ns {0}{1}( R$ R'