
    h                     *    S r SSKJrJr  S rS rS rg)z
Python introspection helpers.
    )CodeTypeFunctionTypec                    [        [        S5      (       a9  U R                  " S	0 UR                  5        VVs0 s H  u  p#SU-   U_M     snnD6$ / SQn[        [        S5      (       a  UR	                  SS5        [        [        S5      (       a  UR	                  SS5        U Vs/ s H!  oQR                  U[        U SU-   5      5      PM#     nn[        U6 $ s  snnf s  snf )
Nreplaceco_)argcountnlocals	stacksizeflagscodeconstsnamesvarnamesfilenamenamefirstlinenolnotabfreevarscellvarsco_kwonlyargcount   kwonlyargcountco_posonlyargcountposonlyargcount )hasattrr   r   itemsinsertgetgetattr)templatechangeskvr   r   valuess          ]/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/automat/_introspection.pycopycoder'      s    tYMGMMO"LODA519a<O"LMME  t())Q()t)**Q)*MRSUTkk$%$, ?@UFS=/ #M, Ts   C%(Cc                     / SQnU Vs/ s H$  oAR                  U[        U SU-   S-   5      5      PM&     nn[        [        U R                  U5      /UQ76 $ s  snf )N)globalsr   defaultsclosure__)r   r    functionr'   __code__)r!   funcchangescodechangesr   r   r%   s         r&   copyfunctionr1   $   sg    E RWQVghtd0BCDQV   HX..<FvFFs   +Ac                    ^  U 4S jnU$ )zD
Preserve the name of the given function on the decorated function.
c                 b   > [        U [        TR                  S9[        TR                  S95      $ )N)r   )r1   dict__name__)	decoratedfs    r&   	decoratorpreserveName.<locals>.decorator6   s$    It'<d

>STT    r   )r7   r8   s   ` r&   preserveNamer;   1   s    
U r:   N)	__doc__typesr   r   r   r-   r'   r1   r;   r   r:   r&   <module>r>      s    =8
Gr:   