• File: format_helpers.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/asyncio/__pycache__/format_helpers.cpython-37.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.26 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Ljd	@sdddlZddlZddlZddlZddlZddlmZddZddZdd	Z	dddZ
dd
dZdS)N)	constantscCsVt|}t|r&|j}|j|jfSt|tjr<t	|j
St|tjrRt	|j
SdS)N)inspectZunwrapZ
isfunction__code__co_filenameco_firstlineno
isinstance	functoolspartial_get_function_sourcefunc
partialmethod)rcoder;/opt/alt/python37/lib64/python3.7/asyncio/format_helpers.pyr
s



rcCs8t||d}t|}|r4|d|dd|d7}|S)Nz at r:r)_format_callbackr)rargs	func_reprsourcerrr_format_callback_sources
rcCsHg}|r|dd|D|r8|dd|Ddd|S)zFormat function arguments and keyword arguments.

    Special case for a single parameter: ('hello',) is formatted as ('hello').
    css|]}t|VqdS)N)reprlibrepr).0argrrr	<genexpr>&sz*_format_args_and_kwargs.<locals>.<genexpr>css&|]\}}|dt|VqdS)=N)rr)rkvrrrr(sz({})z, )extenditemsformatjoin)rkwargsr rrr_format_args_and_kwargssr$cCst|tjr.t|||}t|j|j|j|St|drF|j	rF|j	}n t|dr^|j
r^|j
}nt|}|t||7}|r||7}|S)N__qualname____name__)rr	r
r$rrrkeywordshasattrr&r'r)rrr#suffixrrrrr,srcCsD|dkrtj}|dkr tj}tjjt||dd}|	|S)zlReplacement for traceback.extract_stack() that only does the
    necessary work for asyncio debug mode.
    NF)limitlookup_lines)
sys	_getframef_backrZDEBUG_STACK_DEPTH	tracebackStackSummaryextract
walk_stackreverse)fr+stackrrr
extract_stack>s
r7)r%)NN)r	rrr-r0r%rrrr$rr7rrrr<module>s