Your IP : 216.73.216.86


Current Path : /lib/fm-agent/dependencies/__pycache__/
Upload File :
Current File : //lib/fm-agent/dependencies/__pycache__/p_importlib.cpython-36.pyc

3

q��i/�@s"dZddlZdd�Zddd�ZdS)z-Backport of importlib.import_module from 3.x.�NcCstt|d�std��t|�}xDt|dd	�D]4}y|jdd|�}Wq(tk
rZtd��Yq(Xq(Wd|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`|jd�rN|std��d}x|D]}|dkr.P|d7}q Wt||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