Ë
    	š„j»  ã                   ó<   — d Z dZdZ G d„ de«      Z G d„ de«      Zy)zº
Base classes for features that are backwards-incompatible.

Usage:
features = Features()
features.add(Feature("py3k_feature", "power< 'py3k' any* >", "2.7"))
PATTERN = features.PATTERN
z%s=%sz-
%s is only supported in Python %s and above.c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚFeaturez®
    A feature has a name, a pattern, and a minimum version of Python 2.x
    required to use the feature (or 3.x if there is no backwards-compatible
    version of 2.x)
    c                 ó.   — || _         || _        || _        y )N)ÚnameÚ_patternÚversion)Úselfr   ÚPATTERNr   s       úW/var/www/html/GAP/venv/lib/python3.12/site-packages/libpasteurize/fixes/feature_base.pyÚ__init__zFeature.__init__   s   € ØˆŒ	ØˆŒØˆ�ó    c                 ó@   — t         | j                  | j                  fz  S )zS
        Format the above text with the name and minimum version required.
        )Úmessage_unformattedr   r   )r   s    r
   Úmessage_textzFeature.message_text   s   € ô # d§i¡i°·±Ð%>Ñ>Ð>r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r
   r   r      s   „ ñò
ó
?r   r   c                   ó0   — e Zd ZdZi Zd„ Zed„ «       Zd„ Zy)ÚFeaturesz™
    A set of features that generates a pattern for the features it contains.
    This set will act like a mapping in that we map names to patterns.
    c                 ót   — t        t        | «      D �cg c]  }|j                  |f‘Œ c}«      | _        yc c}w )zS
        Called every time we care about the mapping of names to features.
        N)ÚdictÚiterr   Úmapping©r   Úfs     r
   Úupdate_mappingzFeatures.update_mapping&   s*   € ô ´$°t³*Ö=¨Q˜aŸf™f aš[Ò=Ó>ˆ�ùÒ=s   “5c                 ó¶   — | j                  «        dj                  t        | «      D �cg c]!  }t        |j                  |j
                  fz  ‘Œ# c}«      S c c}w )z{
        Uses the mapping of names to features to return a PATTERN suitable
        for using the lib2to3 patcomp.
        z |
)r   Újoinr   Úpattern_unformattedr   r   r   s     r
   r	   zFeatures.PATTERN,   sG   € ð 	×ÑÔØ�|‰|ÔQUÐVZÓQ[Ö\ÈAÔ0°A·F±F¸A¿J¹JÐ3GÓGÒ\Ó]Ð]ùÒ\s   ©&Ac                 ó    — | j                   |   S )zH
        Implement a simple mapping to get patterns from names.
        )r   )r   Úkeys     r
   Ú__getitem__zFeatures.__getitem__5   s   € ð �|‰|˜CÑ Ð r   N)	r   r   r   r   r   r   Úpropertyr	   r#   r   r   r
   r   r      s.   „ ñð €Gò?ð ñ^ó ð^ó!r   r   N)r   r    r   Úobjectr   Úsetr   r   r   r
   ú<module>r'      s2   ðñð Ð ð0Ð ô?ˆfô ?ô"!ˆsõ !r   