u\w X d Z ddlmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ ddlm Z mZ ddlmZmZmZmZ ddlmZ ddlmZmZmZmZ dd lmZmZ dd lmZ ddl m!Z! ee Zej" j# Z$ G d d Z%ddZ& G d d Z'ddZ(ddZ)d dZ*d dZ+dS )!zExecute files of Python code. )annotationsN) ModuleSpec)CodeType ModuleType)AnyListOptionalTuple)env)CoverageException_ExceptionDuringRunNoCodeNoSource)canonical_filenamepython_reported_file)isolate_module)get_python_sourcec e Zd ZdZd dZd S )DummyLoaderzzA shim for the pep302 __loader__, emulating pkgutil.ImpLoader. Currently only implements the .fullname attribute fullnamestr_argsr returnNonec || _ d S )N)r )selfr r s e/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/coverage/execfile.py__init__zDummyLoader.__init__$ s N)r r r r r r )__name__ __module____qualname____doc__r r r r r s2 ! ! ! ! ! !r r modulenamer r %Tuple[Optional[str], str, ModuleSpec]c t j | }n/# t $ r"}t t | |d}~ww xY w|st d| |j }|j }|j rM| dz }t j | }|st d| d| dz |j }|j }| d d }|||fS )zFind the module named `modulename`. Returns the file path of the module, the name of the enclosing package, and the spec. NzNo module named z .__main__z; z- is a package and cannot be directly executed.r ) importlibutil find_specImportErrorr r originnamesubmodule_search_locations rpartition)r% specerrpathnamepackagenamemod_mains r find_moduler6 ( s *~'' 33 * * *s3xx c)* :8*88999{H)K&