Ë
    V.j#f  ã                  óÐ  — d Z ddlmZ ddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlmZ ddlmZ ddlmZmZ ddlmZmZmZ ddlmZ dd	lmZmZ dd
lmZmZmZ ddl m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& ddl'm(Z(m)Z) ddl*m+Z+m,Z, ddl-m.Z.m/Z/m0Z0m1Z1 erddl2m3Z3 ddl4m5Z5  e(e«      Zd d!d„Z6d"d„Z7d#d„Z8d#d„Z9d$d„Z:d%d„Z;d&d„Z<d&d„Z=d&d„Z>e G d„ d«      «       Z?d'd„Z@d(d„ZA G d„ d«      ZBy))z=Determining whether files are being measured/reported or not.é    )ÚannotationsN)ÚIterable)Ú	dataclass)Ú	FrameTypeÚ
ModuleType)ÚTYPE_CHECKINGÚAnyÚcast)Úenv)ÚFileDispositionÚdisposition_init)ÚConfigErrorÚCoverageExceptionÚPluginError)ÚGlobMatcherÚModuleMatcherÚTreeMatcherÚcanonical_filenameÚfind_python_filesÚprep_patterns)Úisolate_moduleÚsys_modules_saved)Úsource_for_fileÚsource_for_morf)Ú	TDebugCtlÚTFileDispositionÚTMorfÚTWarnFn)ÚCoverageConfig)ÚPluginsc                ó˜   — t        t        | «      «      }|j                  d«      s|r"t        j                  j                  |«      d   }|S )zôReturn the canonical path of the module or file `morf`.

    If the module is a package, then return its directory. If it is a
    module, then return its file, unless `directory` is True, in which
    case return its enclosing directory.

    z__init__.pyr   )r   r   ÚendswithÚosÚpathÚsplit)ÚmorfÚ	directoryÚ	morf_paths      úRC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\coverage/inorout.pyÚcanonical_pathr*   ,   s@   € ô #¤?°4Ó#8Ó9€IØ×Ñ˜-Ô(©IÜ—G‘G—M‘M )Ó,¨QÑ/ˆ	ØÐó    c                ó  — |�|j                   ni }|j                  dd«      }t        |t        «      r|dk7  r|S |j                  dd«      }|r#|j                  }t        |t        «      r|dk7  r|S t        j                  | «      }|�|S |S )a¥  Get the name of the module for a filename and frame.

    For configurability's sake, we allow __main__ modules to be matched by
    their importable name.

    If loaded via runpy (aka -m), we can usually recover the "original"
    full dotted module name, otherwise, we resort to interpreting the
    file name to get the module's name.  In the case that the module name
    can't be determined, None is returned.

    NÚ__name__Ú__main__Ú__spec__)Ú	f_globalsÚgetÚ
isinstanceÚstrÚnameÚinspectÚgetmodulename)ÚfilenameÚframeÚmodule_globalsÚdunder_nameÚspecÚfullnameÚinspectednames          r)   Úname_for_moduler>   :   s•   € ð ).Ð(9�U—_’_¸r€NØ,×0Ñ0°¸TÓB€Kä�+œsÔ#¨°zÒ(AàÐà×Ñ˜j¨$Ó/€DÙØ—9‘9ˆÜ�h¤Ô$¨°ZÒ)?àˆOô ×)Ñ)¨(Ó3€MØÐ ØÐàÐr+   c                ó<   — t        | d«      xr t        | dd«      du S )z5Is the module object `mod` a PEP420 namespace module?Ú__path__Ú__file__N)ÚhasattrÚgetattr)Úmods    r)   Úmodule_is_namespacerE   \   s"   € ä�3˜
Ó#ÒN¬°°ZÀÓ(FÈ$Ð(NÐNr+   c                ó`   — t        | dd«      }|€yt        j                  j                  |«      S )z8Does the module object `mod` have an existing __file__ ?rA   NF)rC   r#   r$   Úexists)rD   Úmod__file__s     r)   Úmodule_has_filerI   a   s,   € ä˜#˜z¨4Ó0€KØÐØÜ�7‰7�>‰>˜+Ó&Ð&r+   c                óÄ   — d}g }	 t         j                  j                  | «      }|�%|j                  }t	        |j
                  xs d«      }||fS # t        $ r Y ||fS w xY w)zÆFind the file and search path for `modulename`.

    Returns:
        filename: The filename of the module, or None.
        path: A list (possibly empty) of directories to find submodules in.

    N© )Ú	importlibÚutilÚ	find_specÚoriginÚlistÚsubmodule_search_locationsÚ	Exception)Ú
modulenamer7   r$   r;   s       r)   Úfile_and_path_for_modulerT   i   sw   € ð €HØ€Dð?Ü�~‰~×'Ñ'¨
Ó3ˆð ÐØ—{‘{ˆHÜ˜×7Ñ7Ò=¸2Ó>ˆDØ�Tˆ>Ðøô ò Øð
 �Tˆ>Ððús   †A Á	AÁAc                ó¶   — t        t        j                  «       «      }|D ]7  }t        j                  |«      }|D ]  }||v sŒ| j	                  ||   «       Œ Œ9 y)z$Get paths from `sysconfig.get_paths`N)ÚsetÚ	sysconfigÚget_scheme_namesÚ	get_pathsÚadd)ÚpathsÚ
path_namesÚscheme_namesÚschemeÚconfig_pathsÚ	path_names         r)   Ú_add_sysconfig_pathsra   ~   sR   € ä”y×1Ñ1Ó3Ó4€LãˆÜ ×*Ñ*¨6Ó2ˆÛ#ˆIØ˜LÒ(Ø—	‘	˜, yÑ1Õ2ñ $ñ r+   c                ó    — t        | ddg«       y)z;Add paths where the stdlib can be found to the set `paths`.ÚstdlibÚ
platstdlibN)ra   )r[   s    r)   Ú_add_stdlib_pathsre   ‰   s   € ä˜ ¨<Ð 8Õ9r+   c                ó¶   — t        | g d¢«       t        j                  D ]8  }t        |«      }|j                  sŒ|j
                  €Œ(| j                  |«       Œ: y)z:Add locations for third-party packages to the set `paths`.)ÚplatlibÚpurelibÚscriptsN)ra   Úsysr$   Ú_analyze_directoryrG   ÚvenvrZ   )r[   ÚdÚdetails      r)   Ú_add_third_party_pathsro   Ž   sD   € ô ˜Ò AÔBô �XŒXˆÜ# AÓ&ˆØ�=‹=˜VŸ[™[Ñ4Ø�I‰I�a�Lñ r+   c                óÈ   — t        t        d¬«      }| j                  |«       t        j                  r0| j                  t
        j                  j                  |d«      «       yy)zAAdd paths where coverage.py code can be found to the set `paths`.T)r'   ÚtestsN)r*   rA   rZ   r   ÚTESTINGr#   r$   Újoin)r[   Ú
cover_paths     r)   Ú_add_coverage_pathsru   ›   sA   € ä¤°DÔ9€JØ	‡I�IˆjÔÜ
‡{‚{à�	‰	”"—'‘'—,‘,˜z¨7Ó3Õ4ð r+   c                  ó&   — e Zd ZU dZded<   ded<   y)ÚDirectoryDetailzDetails about a directory.ÚboolrG   ú
str | Nonerl   N)r-   Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__rK   r+   r)   rw   rw   ¤   s   … á$àƒLØ
Ôr+   rw   c                ó�  — t        t        j                  j                  | «      d¬«      }|j                  r�	 t        j                  j	                  | «      } | t        j                  j	                  | «      k(  r	 |S t        j                  j                  | d«      }t        j                  j                  |«      r
| |_        	 |S ŒŽ|S )z8Analyze the directory `d` for existence and venv status.N)rG   rl   z
pyvenv.cfg)rw   r#   r$   rG   Údirnamers   rl   )rm   rn   Úpyvenvs      r)   rk   rk   ¬   s—   € ä¤B§G¡G§N¡N°1Ó$5¸DÔA€FØ‡}‚}ØÜ—‘—‘ Ó"ˆAØ”B—G‘G—O‘O AÓ&Ò&Øð
 €Mô	 —W‘W—\‘\ ! \Ó2ˆFÜ�w‰w�~‰~˜fÔ%Ø�”ØØ€Mð ð €Mr+   c                ó‚   — t        | «      }|j                  sd}n|j                  �d|j                  › �}nd}| ›d|› d�S )z8Get a string describing the directory `d` for debugging.zdoes not existzvenv at z
not a venvz (Ú))rk   rG   rl   )rm   rn   Údescribes      r)   Ú_dir_detailr„   »   sJ   € ä Ó"€FØ�=Š=Ø#‰Ø	�‰Ð	 Ø˜fŸk™k˜]Ð+‰àˆØˆU�"�X�J˜aÐ Ð r+   c                  óŽ   — e Zd ZdZ	 	 	 	 	 	 	 	 	 	 dd„Zdd„Zdd„Zddd„Zdd„Zdd„Z	dd	„Z
dd
„Zdd„Zdd„Zdd„Zdd„Zdd„Zy)ÚInOrOutz0Machinery for determining what files to measure.c           
     ó(  — || _         || _        || _        |  t        | _        t        |j                  «      | _        t        |j                  «      | _        |j                  xs g D ]X  }t        j                  j                  |«      r| j                  j                  |«       Œ>| j                  j                  |«       ŒZ t        | j                  «      D ]J  \  }}t        j                  j                  |«      st        d|›�«      ‚t        |«      | j                  |<   ŒL | j                  d d  | _        t#        |j$                  «      | _        t#        |j(                  «      | _        t-        «       | _        |j0                  st3        | j.                  «       t-        «       | _        t7        | j4                  «       t-        «       | _        t;        | j8                  «       | j                  r“| j=                  d«       t?        tA        jB                  «       «      D ]b  }| j=                  d|› d�«       tA        jD                  |«      jG                  «       D ]%  \  }}	| j=                  d|› dtI        |	«      › �«       Œ' Œd d | _%        d | _&        d | _'        d | _(        d | _)        | j                  s| j                  rg| j                  r'tU        | j                  dd| j<                  «      | _%        | j                  r[tW        | j                  d	d
| j<                  «      | _&        n3| j.                  r'tU        | j.                  dd| j<                  «      | _'        | j&                  r'tY        | j&                  dd| j<                  «      | _(        | j*                  r'tY        | j*                  dd| j<                  «      | _)        tU        | j4                  dd| j<                  «      | _-        t        t\        j                  «      | _/        | ja                  «        y )NzSource dir is not a directory: zsysconfig paths:z    Ú:z        ú: ÚsourcezSource directoryÚsource_pkgszSource importsÚpylibzPython stdlibÚincludeÚIncludeÚomitÚOmitÚcoveragezCoverage code)1ÚwarnÚdebugÚinclude_namespace_packagesr   Ú
disp_classrP   r‹   Úsource_dirsrŠ   r#   r$   ÚisdirÚappendÚ	enumerater   r   Úsource_pkgs_unmatchedr   Úrun_includer�   Úrun_omitr�   rV   Úpylib_pathsÚcover_pylibre   Úcover_pathsru   Úthird_pathsro   Ú_debugÚsortedrW   rX   rY   Úitemsr„   Úsource_matchÚsource_pkgs_matchÚpylib_matchÚinclude_matchÚ
omit_matchr   r   r   Úcoverage_matchrj   Úlast_sys_pathÚ!set_matchers_depending_on_syspath)
ÚselfÚconfigr’   r“   r”   ÚsrcÚir^   ÚkÚvs
             r)   Ú__init__zInOrOut.__init__Ê   s>  € ð ˆŒ	ØˆŒ
Ø*DˆÔ'áÜ2AˆŒä&*¨6×+=Ñ+=Ó&>ˆÔÜ&*¨6×+=Ñ+=Ó&>ˆÔØ—=‘=Ò& BÒ&ˆCÜ�w‰w�}‰}˜SÔ!Ø× Ñ ×'Ñ'¨Õ,à× Ñ ×'Ñ'¨Õ,ð	 'ô   × 0Ñ 0Ö1‰FˆAˆsÜ—7‘7—=‘= Ô%Ü!Ð$CÀCÀ7Ð"KÓLÐLÜ"4°SÓ"9ˆD×Ñ˜QÒð 2ð
 &*×%5Ñ%5±aÐ%8ˆÔ"ä$ V×%7Ñ%7Ó8ˆŒÜ! &§/¡/Ó2ˆŒ	ô &)£UˆÔØ×!Ò!Ü˜d×.Ñ.Ô/ô &)£UˆÔÜ˜D×,Ñ,Ô-ô &)£UˆÔÜ˜t×/Ñ/Ô0ð �:Š:Ø�K‰KÐ*Ô+Ü ¤×!;Ñ!;Ó!=Ö>�Ø—‘˜d 6 (¨!Ð,Ô-Ü%×/Ñ/°Ó7×=Ñ=Ö?‘D�A�qØ—K‘K (¨1¨#¨R´¸A³Ð/?Ð @ÕAñ @ð ?ð !ˆÔØ!%ˆÔØˆÔØ!ˆÔØˆŒà×Ò˜t×/Ò/Ø×ÒÜ$/Ø×$Ñ$ hÐ0BÀDÇKÁKó%�Ô!ð ×ÒÜ)6Ø×$Ñ$ mÐ5EÀtÇ{Á{ó*�Õ&ð ×ÒÜ#.Ø×$Ñ$ g¨ÀÇÁó$�Ô ð �<Š<Ü!,¨T¯\©\¸9ÀiÐQU×Q\ÑQ\Ó!]ˆDÔØ�9Š9Ü)¨$¯)©)°V¸VÀTÇ[Á[ÓQˆDŒOä)Ø×Ñ˜j¨/¸4¿;¹;ó
ˆÔô "¤#§(¡(›^ˆÔØ×.Ñ.Õ0r+   c                óT   — | j                   r| j                   j                  |«       yy)z.A more convenient way to write debug messages.N)r“   Úwrite)r¬   Úmsgs     r)   r¡   zInOrOut._debug#  s    € à�:Š:Ø�J‰J×Ñ˜SÕ!ð r+   c           	     ó¨  — | j                  ddj                  d„ t        j                  D «       «      z   «       t	        «       | _        t        | j
                  «       t        | j
                  dd| j                   «      | _        t	        «       | _	        t        «       5  | j                  D ]à  }	 t        |«      \  }}| j                  d|›d|›�«       |ra| j                  j                  |«      sŒG| j                  d|›d|›�«       | j                  j                  t!        t#        |«      «      «       ŒŒ|D ]P  }| j                  j                  |«      sŒ| j                  d|›d|›�«       | j                  j                  |«       ŒR Œâ 	 d
d
d
«       | j$                  D ]M  }| j                  j                  |«      sŒ| j                  d|›�«       | j                  j                  |«       ŒO t        | j                  dd| j                   «      | _        y
# t        $ r"}| j                  d|›d	|› �«       Y d
}~�Œ–d
}~ww xY w# 1 sw Y   Œ»xY w)zÍSet up matchers that depend on sys.path.

        This is called at initialization time, and later if sys.path changes,
        which can happen when test runners like pytest manipulate sys.path.

        z	sys.path:Ú c              3  ó8   K  — | ]  }d t        |«      › �–— Œ y­w)z
    N)r„   )Ú.0rm   s     r)   Ú	<genexpr>z<InOrOut.set_matchers_depending_on_syspath.<locals>.<genexpr>/  s   è ø€ Ð)VÉXÈ¨F´;¸q³>Ð2BÔ*CÉXùs   ‚ÚthirdzThird-party libzImported source package z as zCouldn't import source package r‰   Nz"Source in third-party: source_pkg z at zSource in third-party: z path directory at z(Source in third-party: source directory Úsource_in_thirdzSource in third-party)r¡   rs   rj   r$   rV   r    ro   r   Úthird_matchÚsource_in_third_pathsr   r‹   rT   r   ÚmatchrZ   r*   r   r–   Úsource_in_third_match)r¬   ÚpkgÚmodfiler$   ÚexcÚpathdirr®   s          r)   r«   z)InOrOut.set_matchers_depending_on_syspath(  s  € ð 	�‰�K "§'¡'Ñ)VÌSÏXÊXÓ)VÓ"VÑVÔWä›5ˆÔÜ˜t×/Ñ/Ô0Ü& t×'7Ñ'7¸ÐBSÐUY×U`ÑU`ÓaˆÔô
 &)£UˆÔ"ÜÕ Ø×'Ô'�ðÜ$<¸SÓ$A‘M�G˜TØ—K‘KÐ":¸3¸'ÀÀgÀ[Ð QÔRñ Ø×'Ñ'×-Ñ-¨gÕ6ØŸ™Ø@ÀÀÀtÈGÈ;ÐWôð ×2Ñ2×6Ñ6´~ÄoÐV]ÓF^Ó7_Õ`ã#'˜Ø×+Ñ+×1Ñ1°'Õ:Ø ŸK™KØ"9¸#¸Ð@SÐT[ÐS^Ð _ôð !×6Ñ6×:Ñ:¸7ÕCñ $(ñ (÷ !ð, ×#Ô#ˆCØ×Ñ×%Ñ% cÕ*Ø—‘ÐFÀsÀgÐNÔOØ×*Ñ*×.Ñ.¨sÕ3ð $ô &1Ø×&Ñ&Ð(9Ð;RÐTX×T_ÑT_ó&
ˆÕ"øô+ )ò Ø—K‘KÐ"AÀ#ÀÈÈ3È%Ð PÔQÝûðú÷ !Ð úsC   ÂIÂ.%HÃIÃ1A%IÅ6IÈ	IÈ#I È:IÉ IÉIÉINc                ó\  — t         j                  | j                  k7  r.| j                  «        t	        t         j                  «      | _        |}t        | j                  |«      }dd„}|j                  d«      r	 ||d«      S |�•|j                  xr |j                  j                  d«      }|rjt        t        |«      «      }|rT|j                  d«      sCt        j                  j                  |«      }|t        j                  j                  |«      k7  r|}|s	 ||d«      S |j                  d«      r	 ||d«      S |j                  d«      r	 ||d	«      S t        |«      }||_        d}	| j                  j                   D ]p  }	|	j"                  sŒ	 |	j%                  |«      }
|
�M|	|
_        d
|_        |
|_        |
j+                  «       rd
|_        nt        |
j/                  «       «      |_         nŒr d
|_        ||_        |j,                  sO|j.                  st;        d|	›d|j<                  › d�«      ‚| j?                  |j.                  |«      }|r	 |||«       |S # t0        $ rB |	j2                  }t5        j6                  «       }| j9                  d|›d|› �«       d|	_        Y �Œ(w xY w)a  Decide whether to trace execution in `filename`, with a reason.

        This function is called from the trace function.  As each new file name
        is encountered, this function determines whether it is traced or not.

        Returns a FileDisposition object.

        c                ó"   — d| _         || _        | S )z+Simple helper to make it easy to return NO.F)ÚtraceÚreason)ÚdisprÈ   s     r)   Únopez"InOrOut.should_trace.<locals>.nopeg  s   € àˆDŒJØ ˆDŒKØˆKr+   Ú<zoriginal file name is not realNrA   zempty string isn't a file namezmemory:zmemory isn't traceablezfile name is not realTzDisabling plug-in z due to an exception:
FzPlugin z! didn't set source_filename for 'Ú')rÉ   r   rÈ   r3   Úreturnr   ) rj   r$   rª   r«   rP   r   r•   Ú
startswithr0   r1   r   r3   r#   Úbasenamer   ÚpluginsÚfile_tracersÚ_coverage_enabledÚfile_tracerÚ_coverage_pluginrÇ   Úhas_dynamic_source_filenameÚhas_dynamic_filenameÚsource_filenamerR   Ú_coverage_plugin_nameÚ	tracebackÚ
format_excr’   r   Úoriginal_filenameÚcheck_include_omit_etc)r¬   r7   r8   rÛ   rÉ   rÊ   Údunder_fileÚorigÚ	canonicalÚpluginrÓ   Úplugin_nameÚtbrÈ   s                 r)   Úshould_tracezInOrOut.should_traceW  sœ  € ô �8‰8�t×)Ñ)Ò)Ø×2Ñ2Ô4Ü!%¤c§h¡h£ˆDÔà$ÐÜ §¡°Ó:ˆó	ð ×'Ñ'¨Ô,Ù˜Ð>Ó?Ð?àÐð  Ÿ/™/ÒM¨e¯o©o×.AÑ.AÀ*Ó.MˆKÙä*¬3¨{Ó+;Ó<�Ù$Ð->×-IÑ-IÈ#Ô-NÜŸ7™7×+Ñ+Ð,=Ó>�DØœrŸw™w×/Ñ/°Ó9Ò9ð $5˜áá˜Ð>Ó?Ð?à×Ñ˜yÔ)Ù˜Ð6Ó7Ð7à×Ñ˜sÔ#ñ
 ˜Ð5Ó6Ð6ä& xÓ0ˆ	Ø"+ˆÔð ˆØ—l‘l×/Ô/ˆFØ×+Ò+ØðØ$×0Ñ0°Ó;�ØÐ*Ø39�KÔ0Ø!%�D”JØ'2�DÔ$Ø"×>Ñ>Ô@Ø48˜Õ1ä/AØ'×7Ñ7Ó9ó0˜Ô,ñ ð +ð 0ð2 ˆDŒJØ#,ˆDÔ à×(Ò(Ø×'Ò'Ü!Ø˜f˜ZÐ'HÈ×I_ÑI_ÐH`Ð`aÐbóð ð ×0Ñ0°×1EÑ1EÀuÓMˆFÙÙ�T˜6Ô"àˆøô) ò Ø$×:Ñ:�Ü×)Ñ)Ó+�Ø—	‘	Ð.¨{¨oÐ=TÐUWÐTXÐYÔZØ+0�Ô(Úðús   ÆAI É AJ+Ê*J+c                óš  — t        ||«      }| j                  s| j                  rÖd}d}| j                  r]t        |t        «      rG| j                  j                  |«      r,d}|| j                  v r"| j                  j                  |«       nd|›d�}|s)| j                  r| j                  j                  |«      rd}|s|dz   S | j                  j                  |«      r¤| j                  j                  |«      s‰y| j                  r| j                  j                  |«      say| j                  j                  |«      ry	| j                  j                  |«      ry
| j                  r| j                  j                  |«      ry| j                  r| j                  j                  |«      ry	 |j                  d«       y# t        $ r Y yw xY w)zÊCheck a file name against the include, omit, etc, rules.

        Returns a string or None.  String means, don't trace, and is the reason
        why.  None means no reason found to not trace.

        r·   FTzmodule Ú zfalls outside the --source specz#inside --source, but is third-partyz!falls outside the --include treeszis part of coverage.pyzis a third-party modulezis in the stdlibzis inside an --omit patternzutf-8znon-encodable filenameN)r>   r¤   r¥   r2   r3   r¿   rš   Úremover½   rÀ   r§   r©   r¦   r¨   ÚencodeÚUnicodeEncodeError)r¬   r7   r8   rS   ÚextraÚoks         r)   rÜ   zInOrOut.check_include_omit_etc½  s¡  € ô % X¨uÓ5ˆ
ð ×Ò × 6Ò 6ØˆEØˆBØ×%Ò%Ü˜j¬#Ô.°4×3IÑ3I×3OÑ3OÐPZÔ3[Ø�BØ! T×%?Ñ%?Ñ?Ø×2Ñ2×9Ñ9¸*ÕEà% j ^°1Ð5�EÙ˜$×+Ò+Ø×$Ñ$×*Ñ*¨8Ô4Ø�BÙØÐ@Ñ@Ð@Ø×Ñ×%Ñ% hÔ/¸×8RÑ8R×8XÑ8XÐYaÔ8bØ<Ø×ÒØ×%Ñ%×+Ñ+¨HÔ5Ø:ð ×"Ñ"×(Ñ(¨Ô2Ø/ð ×Ñ×%Ñ% hÔ/Ø0ð ×Ò D×$4Ñ$4×$:Ñ$:¸8Ô$DØ)ð �?Š?˜tŸ™×4Ñ4°XÔ>Ø0ð	,Ø�O‰O˜GÔ$ð
 øô	 "ò 	,Ù+ð	,ús   Æ,F> Æ>	G
Ç	G
c                óv   — | j                   r-| j                  s| j                  r| j                  dd¬«       yyy)z)Warn if there are settings that conflict.z,--include is ignored because --source is setzinclude-ignored©ÚslugN)r�   r–   r‹   r’   )r¬   s    r)   Úwarn_conflicting_settingsz!InOrOut.warn_conflicting_settingsý  s6   € à�<Š<Ø×Ò 4×#3Ò#3Ø—	‘	ÐHÐO`�	Õað $4ð r+   c                ó’  — | j                   s| j                  s| j                  �r"t        «       }t	        t
        j                  j                  «       «      D ]í  }t        |dd«      }|€Œ||v rŒt        t        |dd«      «      dkD  rŒ2| j                  |«      }|j                  rŒP|j                  r*d|› �}| j                  |d¬«       |j                  |«       Œ†| j                  sŒ“| j                  j!                  d	«      sŒ¯| j                  j#                  d
j%                  |j&                  |j(                  «      «       Œï yy)zCWarn if files have already been imported that we will be measuring.rA   Nr@   rK   é   z/Already imported a file that will be measured: zalready-importedrì   rÇ   z+Didn't trace already imported file {!r}: {})r�   r–   r‹   rV   rP   rj   ÚmodulesÚvaluesrC   Úlenrã   rÖ   rÇ   r’   rZ   r“   Úshouldr´   ÚformatrÛ   rÈ   )r¬   ÚwarnedrD   r7   rÉ   rµ   s         r)   Úwarn_already_imported_filesz#InOrOut.warn_already_imported_files  s  € à�<Š<˜4×+Ò+¨t×/?Ó/?Ü“UˆFÜœCŸK™K×.Ñ.Ó0Ö1�Ü" 3¨
°DÓ9�ØÐ#ØØ˜vÑ%Øä”w˜s J°Ó3Ó4°qÒ8àà×(Ñ(¨Ó2�Ø×,Ò,ð Ø—:’:ØKÈHÈ:ÐV�CØ—I‘I˜cÐ(:�IÔ;Ø—J‘J˜xÕ(Ø—Z“Z D§J¡J×$5Ñ$5°gÕ$>Ø—J‘J×$Ñ$ØE×LÑLØ ×2Ñ2Ø ŸK™Kóõñ- 2ð 0@r+   c                óH   — | j                   D ]  }| j                  |«       Œ y)zCWarn about source packages that were of interest, but never traced.N)rš   Ú_warn_about_unmeasured_code)r¬   rÁ   s     r)   Úwarn_unimported_sourcezInOrOut.warn_unimported_source$  s    € à×-Ô-ˆCØ×,Ñ,¨SÕ1ñ .r+   c                ó  — t         j                  j                  |«      }|€| j                  d|› d�d¬«       yt	        |«      ryt        |«      s| j                  d|› d�d¬«       yd|› d�}| j                  |d	¬«       y)
z}Warn about a package or module that we never traced.

        `pkg` is a string, the name of the package or module.

        NzModule z was never imported.zmodule-not-importedrì   z has no Python source.zmodule-not-pythonz* was previously imported, but not measuredzmodule-not-measured)rj   rñ   r1   r’   rE   rI   )r¬   rÁ   rD   rµ   s       r)   rù   z#InOrOut._warn_about_unmeasured_code)  sŽ   € ô �k‰k�o‰o˜cÓ"ˆØˆ;Ø�I‰I˜ ˜uÐ$8Ð9Ð@UˆIÔVØä˜sÔ#ð ä˜sÔ#Ø�I‰I˜ ˜uÐ$:Ð;ÐBUˆIÔVØð
 ˜�uÐFÐGˆØ�	‰	�#Ð1ˆ	Õ2r+   c              #  ó”  K  — | j                   D ]‡  }|t        j                  vst        t        j                  |   «      sŒ2t	        t        t        t        j                  |   j                  «      «      }| j                  t        |«      «      E d{  –—†  Œ‰ | j                  D ]  }| j                  |«      E d{  –—†  Œ y7 Œ17 Œ	­w)z„Find files in the areas of interest that might be untraced.

        Yields pairs: file path, and responsible plug-in name.
        N)r‹   rj   rñ   rI   r   r
   r3   rA   Ú_find_executable_filesr*   r–   )r¬   rÁ   Úpkg_filer®   s       r)   Úfind_possibly_unexecuted_filesz&InOrOut.find_possibly_unexecuted_filesC  s¢   è ø€ ð
 ×#Ô#ˆCØœ#Ÿ+™+Ñ%¬_¼S¿[¹[ÈÑ=MÔ-NØÜ&¤t¬C´·±¸SÑ1A×1JÑ1JÓ'KÓLˆHØ×2Ñ2´>À(Ó3KÓL×LÑLð	 $ð ×#Ô#ˆCØ×2Ñ2°3Ó7×7Ñ7ñ $ð Møð 8ús$   ‚BCÂCÂ)CÂ<CÂ=CÃCc              #  óŽ   K  — | j                   j                  D ](  }|j                  |«      D ]  }||j                  f–— Œ Œ* y­w)z&Get executable files from the plugins.N)rÐ   rÑ   Úfind_executable_filesrØ   )r¬   Úsrc_dirrà   Úx_files       r)   Ú_find_plugin_fileszInOrOut._find_plugin_filesQ  sA   è ø€ à—l‘l×/Ô/ˆFØ ×6Ñ6°wÖ?�Ø˜f×:Ñ:Ð:Ó:ñ @ñ 0ùs   ‚AAc              #  ó  K  — d„ t        || j                  «      D «       }| j                  |«      }t        j                  ||«      D ]>  \  }}t        |«      }| j                  r| j                  j                  |«      rŒ9||f–— Œ@ y­w)a(  Find executable files in `src_dir`.

        Search for files in `src_dir` that can be executed because they
        are probably importable. Don't include ones that have been omitted
        by the configuration.

        Yield the file path, and the plugin name that handles the file.

        c              3  ó$   K  — | ]  }|d f–— Œ
 y ­w©NrK   )r¹   Úpy_files     r)   rº   z1InOrOut._find_executable_files.<locals>.<genexpr>a  s   è ø€ ð 
áV�ð �dŒOÙVùs   ‚N)r   r”   r  Ú	itertoolsÚchainr   r¨   r¿   )r¬   r  Úpy_filesÚplugin_filesÚ	file_pathrá   s         r)   rý   zInOrOut._find_executable_filesW  s�   è ø€ ñ
ä,¨W°d×6UÑ6UÔVó
ˆð ×.Ñ.¨wÓ7ˆä&/§o¡o°hÀÖ&MÑ"ˆI�{Ü*¨9Ó5ˆIØ�Š 4§?¡?×#8Ñ#8¸Ô#Cð Ø˜[Ð(Ó(ñ 'Nùs   ‚BB	c                óð   — d| j                   fd| j                  fd| j                  fd| j                  fg}g d¢}|D ]6  }t	        | |«      }|r|j                  «       }nd}|j                  ||f«       Œ8 |S )z^Our information for Coverage.sys_info.

        Returns a list of (key, value) pairs.
        Úcoverage_pathsÚstdlib_pathsÚthird_party_pathsÚsource_in_third_party_paths)r¤   r¥   r§   r¨   r©   r¦   r½   rÀ   z-none-)rŸ   r�   r    r¾   rC   Úinfor˜   )r¬   r  Úmatcher_namesÚmatcher_nameÚmatcherÚmatcher_infos         r)   Úsys_infozInOrOut.sys_infoo  s�   € ð ˜t×/Ñ/Ð0Ø˜T×-Ñ-Ð.Ø  $×"2Ñ"2Ð3Ø*¨D×,FÑ,FÐGð	
ˆò	
ˆó *ˆLÜ˜d LÓ1ˆGÙØ&Ÿ|™|›~‘à'�Ø�K‰K˜ |Ð4Õ5ð *ð ˆr+   )
r­   r   r’   r   r“   zTDebugCtl | Noner”   rx   rÍ   ÚNone)rµ   r3   rÍ   r  )rÍ   r  r  )r7   r3   r8   úFrameType | NonerÍ   r   ©r7   r3   r8   r  rÍ   ry   )rÁ   r3   rÍ   r  )rÍ   ú Iterable[tuple[str, str | None]])r  r3   rÍ   zIterable[tuple[str, str]])r  r3   rÍ   r  )rÍ   zIterable[tuple[str, Any]])r-   rz   r{   r|   r²   r¡   r«   rã   rÜ   rî   r÷   rú   rù   rÿ   r  rý   r  rK   r+   r)   r†   r†   Ç   sƒ   „ Ù:ðW1àðW1ð ðW1ð  ð	W1ð
 %)ðW1ð 
óW1ór"ó
-
ô^dóL>ó@bóóB2ó
3ó48ó;ó)ô0r+   r†   )F)r&   r   r'   rx   rÍ   r3   r  )rD   r   rÍ   rx   )rS   r3   rÍ   ztuple[str | None, list[str]])r[   úset[str]r\   z	list[str]rÍ   r  )r[   r  rÍ   r  )rm   r3   rÍ   rw   )rm   r3   rÍ   r3   )Cr|   Ú
__future__r   Úimportlib.utilrL   r5   r	  r#   Úos.pathrj   rW   rÙ   Úcollections.abcr   Údataclassesr   Útypesr   r   Útypingr   r	   r
   r‘   r   Úcoverage.dispositionr   r   Úcoverage.exceptionsr   r   r   Úcoverage.filesr   r   r   r   r   r   Úcoverage.miscr   r   Úcoverage.pythonr   r   Úcoverage.typesr   r   r   r   Úcoverage.configr   Úcoverage.plugin_supportr    r*   r>   rE   rI   rT   ra   re   ro   ru   rw   rk   r„   r†   rK   r+   r)   Ú<module>r-     sÌ   ðñ Då "ã Û Û Û 	Û Û 
Û Û Ý $Ý !ß 'ß +Ñ +å ß Bß KÑ K÷÷ ÷ <ß <ß FÓ FáÝ.Ý/ñ �BÓ€ôóóDOó
'óó*3ó:ó

ó5ð ÷ð ó ðóó	!÷Gò Gr+   