Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/stevedore/__pycache__/enabled.cpython-39.pyc
Ðазад
a n�h� � @ s2 d dl Z ddlmZ e �e�ZG dd� de�ZdS )� N� )�ExtensionManagerc s: e Zd ZdZddi dddf� fdd� Z� fdd�Z� ZS ) �EnabledExtensionManagera� Loads only plugins that pass a check function. The check_func argument should return a boolean, with ``True`` indicating that the extension should be loaded and made available and ``False`` indicating that the extension should be ignored. :param namespace: The namespace for the entry points. :type namespace: str :param check_func: Function to determine which extensions to load. :type check_func: callable, taking an :class:`Extension` instance as argument :param invoke_on_load: Boolean controlling whether to invoke the object returned by the entry point after the driver is loaded. :type invoke_on_load: bool :param invoke_args: Positional arguments to pass when invoking the object returned by the entry point. Only used if invoke_on_load is True. :type invoke_args: tuple :param invoke_kwds: Named arguments to pass when invoking the object returned by the entry point. Only used if invoke_on_load is True. :type invoke_kwds: dict :param propagate_map_exceptions: Boolean controlling whether exceptions are propagated up through the map call or whether they are logged and then ignored :type propagate_map_exceptions: bool :param on_load_failure_callback: Callback function that will be called when an entrypoint can not be loaded. The arguments that will be provided when this is called (when an entrypoint fails to load) are (manager, entrypoint, exception) :type on_load_failure_callback: function :param verify_requirements: Use setuptools to enforce the dependencies of the plugin(s) being loaded. Defaults to False. :type verify_requirements: bool F� Nc s$ || _ t� j|||||||d� d S )N)�invoke_on_load�invoke_args�invoke_kwds�propagate_map_exceptions�on_load_failure_callback�verify_requirements)� check_func�super�__init__) �self� namespacer r r r r r r �� __class__r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/stevedore/enabled.pyr ; s �z EnabledExtensionManager.__init__c s8 t � �|||||�}|r4| �|�s4t�d|j� d S |S )Nzignoring extension %r)r �_load_one_pluginr �LOG�debug�name)r �epr r r r �extr r r r K s �z(EnabledExtensionManager._load_one_plugin)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r r r r s %�r )�logging� extensionr � getLoggerr r r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка