%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyc

�
�A�[c@sBdZdZdZdefd��YZdefd��YZdS(u�
Base classes for features that are backwards-incompatible.

Usage:
features = Features()
features.add(Feature("py3k_feature", "power< 'py3k' any* >", "2.7"))
PATTERN = features.PATTERN
u%s=%su-
%s is only supported in Python %s and above.tFeaturecBs eZdZd�Zd�ZRS(u�
    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)
    cCs||_||_||_dS(N(tnamet_patterntversion(tselfRtPATTERNR((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyt__init__s		cCst|j|jfS(uS
        Format the above text with the name and minimum version required.
        (tmessage_unformattedRR(R((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pytmessage_texts(t__name__t
__module__t__doc__RR(((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyRs	tFeaturescBs5eZdZiZd�Zed��Zd�ZRS(u�
    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.
    cCs5tgt|�D]}|j|f^q�|_dS(uS
        Called every time we care about the mapping of names to features.
        N(tdicttiterRtmapping(Rtf((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pytupdate_mapping&scCs@|j�djgt|�D]}t|j|jf^q�S(u{
        Uses the mapping of names to features to return a PATTERN suitable
        for using the lib2to3 patcomp.
        u |
(RtjoinRtpattern_unformattedRR(RR((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyR,s
cCs|j|S(uH
        Implement a simple mapping to get patterns from names.
        (R(Rtkey((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyt__getitem__5s(R	R
RRRtpropertyRR(((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyRs
		N(RRRtobjectRtsetR(((sQ/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/fixes/feature_base.pyt<module>s

Zerion Mini Shell 1.0