HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/3158922/root/lib/python3.10/asyncio/__pycache__/format_helpers.cpython-310.pyc
o

p̦id	�@sdddlZddlZddlZddlZddlZddlmZdd�Zdd�Zdd	�Z	ddd�Z
dd
d�ZdS)�N�)�	constantscCsVt�|�}t�|�r|j}|j|jfSt|tj�rt	|j
�St|tj�r)t	|j
�SdS�N)�inspect�unwrap�
isfunction�__code__�co_filename�co_firstlineno�
isinstance�	functools�partial�_get_function_source�func�
partialmethod)r�code�r�-/usr/lib/python3.10/asyncio/format_helpers.pyr
s



rcCs8t||d�}t|�}|r|d|d�d|d��7}|S)Nz at r�:r)�_format_callbackr)r�args�	func_repr�sourcerrr�_format_callback_sources
rcCsHg}|r|�dd�|D��|r|�dd�|��D��d�d�|��S)z�Format function arguments and keyword arguments.

    Special case for a single parameter: ('hello',) is formatted as ('hello').
    css�|]}t�|�VqdSr��reprlib�repr)�.0�argrrr�	<genexpr>&s�z*_format_args_and_kwargs.<locals>.<genexpr>css(�|]\}}|�dt�|���VqdS)�=Nr)r�k�vrrrr(s�&z({})z, )�extend�items�format�join)r�kwargsr$rrr�_format_args_and_kwargssr(�cCs�t|tj�rt||�|}t|j|j|j|�St|d�r#|j	r#|j	}nt|d�r/|j
r/|j
}nt|�}|t||�7}|r@||7}|S)N�__qualname__�__name__)rrr
r(rrr�keywords�hasattrr*r+r)rrr'�suffixrrrrr,srcCsD|dur	t��j}|durtj}tjjt�|�|dd�}|�	�|S)zlReplacement for traceback.extract_stack() that only does the
    necessary work for asyncio debug mode.
    NF)�limit�lookup_lines)
�sys�	_getframe�f_backr�DEBUG_STACK_DEPTH�	traceback�StackSummary�extract�
walk_stack�reverse)�fr/�stackrrr�
extract_stack>s
�r<)r))NN)rrrr1r5r)rrrr(rr<rrrr�<module>s