
    9iK                     Z    S r SSKJr  SSKJrJrJrJrJr   " S S\R                  5      r
g)z;Fixer for 'raise E(V).with_traceback(T)' -> 'raise E, V, T'    )
fixer_base)CommaNodeLeaftokensymsc                       \ rS rSrSrS rSrg)FixRaise   z
    raise_stmt< 'raise' (power< name=any [trailer< '(' val=any* ')' >]
        [trailer< '.' 'with_traceback' > trailer< '(' trc=any ')' >] > | any) ['from' chain=any] >c                    UR                  S5      UR                  S5      UR                  S5      pTnUR                  S5      nUb<  U R                  US5        UR                  R                  5         UR                  5         Ub  U(       a  US   O[	        [
        R                  S5      nS=Ul        Ul        [	        [
        R                  S	5      UR                  5       [        5       UR                  5       [        5       UR                  5       /n[        [        R                  U5      nUR                  U5        g g )
Nnamevaltrcchainz8explicit exception chaining is not supported in Python 2r   None raise)getwarningprev_siblingremover   r   NAMEprefixcloner   r   r   
raise_stmtreplace)	selfnoderesultsr   r   r   r   kidsr   s	            ]/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/libpasteurize/fixes/fix_raise.py	transformFixRaise.transform   s    !++g.F0CW[[QWEX3H%LLZ[%%'LLN?#a&T%**g%>C&**CJX.

egIIK#))+7Ddoot4JLL$      N)__name__
__module____qualname____firstlineno__PATTERNr"   __static_attributes__r%   r$   r!   r
   r
      s    fG%r$   r
   N)__doc__lib2to3r   lib2to3.fixer_utilr   r   r   r   r   BaseFixr
   r%   r$   r!   <module>r0      s#    B  = =%z!! %r$   