HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/fm-agent/dependencies/__pycache__/p_importlib.cpython-39.pyc
a

��i/�@s"dZddlZdd�Zddd�ZdS)z-Backport of importlib.import_module from 3.x.�Nc	Csnt|d�std��t|�}t|dd�D]2}z|�dd|�}Wq&tyVtd��Yq&0q&d|d	|�|fS)
z6Return the absolute name of the module to be imported.�rindexz'package' not set to a string�����.rz2attempted relative import beyond top-level packagez%s.%sN)�hasattr�
ValueError�len�xranger)�name�package�level�dot�x�r�-/usr/lib/fm-agent/dependencies/p_importlib.py�
_resolve_names
rcCs^|�d�rL|std��d}|D]}|dkr.q8|d7}qt||d�||�}t|�tj|S)z�Import a module.

    The 'package' argument is required when performing a relative import. It
    specifies the package to use as the anchor point from which to resolve the
    relative import to an absolute import.

    rz/relative imports require the 'package' argumentrrN)�
startswith�	TypeErrorr�
__import__�sys�modules)r
rr�	characterrrr�
import_modules

r)N)�__doc__rrrrrrr�<module>s