HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/python3/dist-packages/automat/__pycache__/_introspection.cpython-38.pyc
U

��]��@s0dZddlmZmZdd�Zdd�Zdd�Zd	S)
z
Python introspection helpers.
�)�CodeType�FunctionTypecshddddddddd	d
ddd
dg}ttd�r6|�dd�ttd�rL|�dd���fdd�|D�}t|�S)NZargcountZnlocalsZ	stacksize�flags�codeZconsts�namesZvarnames�filename�nameZfirstlinenoZlnotabZfreevarsZcellvars�co_kwonlyargcount�Zkwonlyargcount�co_posonlyargcountZposonlyargcountc	s"g|]}��|t�d|���qS)Zco_��get�getattr��.0r��changes�template��8/usr/lib/python3/dist-packages/automat/_introspection.py�
<listcomp>s�zcopycode.<locals>.<listcomp>)�hasattrr�insert)rrr�valuesrrr�copycodes.�

�rcs6ddddg}��fdd�|D�}tt�j|�f|��S)N�globalsr�defaultsZclosurec	s&g|]}��|t�d|d���qS)�__rr��funcchangesrrrrs�z copyfunction.<locals>.<listcomp>)�functionr�__code__)rrZcodechangesrrrrr�copyfunctions��r"cs�fdd�}|S)zL
    Preserve the name of the given function on the decorated function.
    cst|t�jd�t�jd��S)N)r)r"�dict�__name__)Z	decorated��frr�	decorator*s

�zpreserveName.<locals>.decoratorr)r&r'rr%r�preserveName&sr(N)	�__doc__�typesrrrr rr"r(rrrr�<module>s