/opt/cloudlinux/venv/lib/python3.11/site-packages/coverage/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/coverage/__pycache__/context.cpython-311.pyc (3450B)
§
B\pJ_ã óR — d Z ddlmZ ddlmZ ddlmZmZmZm Z dd „Z
dd
„Zdd„ZdS )z"Determine contexts for coverage.pyé )Úannotations)Ú FrameType)ÚcastÚCallableÚOptionalÚSequenceÚcontext_switchersú.Sequence[Callable[[FrameType], Optional[str]]]Úreturnú.Optional[Callable[[FrameType], Optional[str]]]c óR ‡ — ‰ sdS t ‰ ¦ « dk r‰ d S d ˆ fd„}|S )
a Create a single context switcher from multiple switchers.
`context_switchers` is a list of functions that take a frame as an
argument and return a string to use as the new context label.
Returns a function that composites `context_switchers` functions, or None
if `context_switchers` is an empty list.
When invoked, the combined switcher calls `context_switchers` one-by-one
until a string is returned. The combined switcher returns None if all
`context_switchers` return None.
Né r Úframer r ú
Optional[str]c ó4 •— ‰D ]} || ¦ « }|�|c S ŒdS )z,The combiner for multiple context switchers.N© )r ÚswitcherÚnew_contextr s €úd/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/coverage/context.pyÚshould_start_contextz7combine_context_switchers.
.should_start_context! s; ø€ à)ð #ð #ˆHØ"˜( 5™/œ/ˆKØÐ&Ø"Ð"Ð"Ð"ð 'àˆtó ©r r r r )Úlen)r r s ` r Úcombine_context_switchersr sW ø€ ð ð Øˆtå
ÐÑÔ Ò"Ð"Ø Ô#Ð#ðð ð ð ð ð ð Ðr r r r c ór — | j j }| d¦ « s|dk rt | ¦ « S dS )z(Is this frame calling a test_* function?ÚtestÚrunTestN)Úf_codeÚco_nameÚ
startswithÚqualname_from_frame)r r s r Ú"should_start_context_test_functionr" , s? € àŒlÔ"€GØ×Ò˜&Ñ!Ô!ð * W° Ò%9Ð%9Ý" 5Ñ)Ô)Ð)؈4r c óþ — | j }|j }d}|j r=|j d dk r,| j dd¦ « }t
||d¦ « }|€>| j |¦ « }|€dS t t |j
dz |z ¦ « S t
|dd¦ « }|€2|j }t t |j
dz |j z dz |z ¦ « S t t |j
dz |j
z ¦ « S )z5Get a qualified name for the code running in `frame`.Nr Úselfú.Ú__func__)r r Úco_argcountÚco_varnamesÚf_localsÚgetÚgetattrÚ f_globalsr ÚstrÚ
__module__Ú __class__Ú__name__Ú__qualname__)r ÚcoÚfnameÚmethodr$ ÚfuncÚclss r r! r! 4 sü € à Œ€BØŒJ€EØ
€FØ „~ð ,˜"œ.¨Ô+¨vÒ5Ð5ØŒ~×!Ò! &¨$Ñ/Ô/ˆÝ˜˜u dÑ+Ô+ˆà
€~ØŒ×"Ò" 5Ñ)Ô)ˆØˆ<Ø�4Ý•C˜œ¨3Ñ.°Ñ6Ñ7Ô7Ð7å�6˜: tÑ,Ô,€DØ€|ØŒnˆÝ•C˜œ¨#Ñ-°´Ñ<¸sÑBÀUÑJÑKÔKÐKå•�T”_ sÑ*¨TÔ->Ñ>Ñ?Ô?Ð?r N)r r
r r r )
Ú__doc__Ú
__future__r Útypesr Útypingr r r r r r" r! r r r úr; s¢ ðð )Ð (à "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5ð ð ð ð ð@ð ð ð ð@ð @ð @ð @ð @ð @r