
    9is
                     V    S r SSKJrJr  SSKJr  / SQr " S S\R                  5      rg)	z
Warn about features that are not present in Python 2.5, giving a message that
points to the earliest version of Python 2.x (or 3.x, if none) that supports it
   )FeatureFeatures    )
fixer_base))
memoryviewz4power < 'memoryview' trailer < '(' any* ')' > any* >z2.7)numberszimport_from< 'from' 'numbers' 'import' any* > |
           import_name< 'import' ('numbers' dotted_as_names< any* 'numbers' any* >) >2.6)abczyimport_name< 'import' ('abc' dotted_as_names< any* 'abc' any* >) > |
           import_from< 'from' 'abc' 'import' any* >r	   )iozvimport_name< 'import' ('io' dotted_as_names< any* 'io' any* >) > |
           import_from< 'from' 'io' 'import' any* >r	   )binz+power< 'bin' trailer< '(' any* ')' > any* >r	   )
formattingz<power< any trailer< '.' 'format' > trailer< '(' any* ')' > >r	   )nonlocalzglobal_stmt< 'nonlocal' any* >3.0)with_tracebackztrailer< '.' 'with_traceback' >r   c                      ^ \ rS rSrSr\" 5       r\" \ V VVVVs/ s H  u  pn[        XU5      PM     snnnnn 5      r
\
R                  rU4S jrS rSrU=r$ s  snnnnn f )FixFeatures3   	   c                 X   > [         [        U ]  U5      n US	 U$ ! [         a     U$ f = f)Nnode)superr   match	Exception)selfr   to_ret	__class__s      `/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/libpasteurize/fixes/fix_features.pyr   FixFeatures.match@   sB    {D/5	w
 	  	 		s    
))c                    U H{  nX0R                   ;   a  M  U R                  U   nUR                  S:  a  U R                  nOU R                  nU" XR                  5       S9  U R                   R                  U5        M}     g )N3)reason)features_warnedfeaturesversioncannot_convertwarningmessage_textadd)r   r   resultsfeature_namecurr_featurefails         r   	transformFixFeatures.transformK   sp    #L333#}}\:''4/..D<<DT";";"=>$$((6 $     )__name__
__module____qualname____firstlineno__	run_ordersetr"   r   FEATURESr   r#   PATTERNr   r-   __static_attributes____classcell__).0namepatternr$   r   r   s   00000@r   r   r   3   si    I eO :BD:B 6w !8:BD EH G	7 7!Ds   Ar   N)	__doc__feature_baser   r   lib2to3r   r7   BaseFixr   r0   r/   r   <module>rB      s,   
 , (T#7*$$ #7r/   