Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/traitlets/utils/__pycache__/importstring.cpython-39.pyc
Ðазад
a _�h� � @ s0 d Z ddlmZ ddlmZ ddd�dd�Zd S ) z: A simple utility to import something by its string name. � )�annotations)�Any�strr )�name�returnc C s� t | t�stdt| � ��| �dd�}t|�dkr�|\}}t||gd�}zt||�}W n2 ty� } zt d| �|�W Y d}~n d}~0 0 |S t|d �S dS ) a� Import and return ``bar`` given the string ``foo.bar``. Calling ``bar = import_item("foo.bar")`` is the functional equivalent of executing the code ``from foo import bar``. Parameters ---------- name : string The fully qualified name of the module/package being imported. Returns ------- mod : module object The module that was imported. z&import_item accepts strings, not '%s'.�.� � )�fromlistzNo module named %sNr ) � isinstancer � TypeError�type�rsplit�len� __import__�getattr�AttributeError�ImportError)r �parts�package�obj�moduleZpak�e� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/traitlets/utils/importstring.py�import_item s $r N)�__doc__� __future__r �typingr r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка