HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/automat/__pycache__/_introspection.cpython-310.pyc
o

��I^��@s0dZddlmZmZdd�Zdd�Zdd�Zd	S)
z
Python introspection helpers.
�)�CodeType�FunctionTypecsPgd�}ttd�r|�dd�ttd�r|�dd���fdd�|D�}t|�S)	N)�argcount�nlocals�	stacksize�flags�code�consts�names�varnames�filename�name�firstlineno�lnotab�freevars�cellvars�co_kwonlyargcount��kwonlyargcount�co_posonlyargcount�posonlyargcountc	s"g|]
}��|t�d|���qS)�co_��get�getattr��.0r
��changes�template��8/usr/lib/python3/dist-packages/automat/_introspection.py�
<listcomp>s��zcopycode.<locals>.<listcomp>)�hasattrr�insert)rrr
�valuesr rr!�copycodes

�r&cs4gd�}��fdd�|D�}tt�j|�g|�R�S)N)�globalsr
�defaults�closurec	s&g|]}��|t�d|d���qS)�__rr��funcchangesrr r!r"s��z copyfunction.<locals>.<listcomp>)�functionr&�__code__)rr,�codechangesr
r%r r+r!�copyfunctions
�r0cs�fdd�}|S)zL
    Preserve the name of the given function on the decorated function.
    cst|t�jd�t�jd��S)N)r
)r0�dict�__name__)�	decorated��fr r!�	decorator*s�zpreserveName.<locals>.decoratorr )r5r6r r4r!�preserveName&sr7N)	�__doc__�typesrrrr-r&r0r7r r r r!�<module>s