Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/tuned/utils/__pycache__/ |
Upload File : |
a ,�g � @ s4 d dl Zd dlZdgZej�� ZG dd� de�ZdS )� N�ClassLoaderc sD e Zd Zg d�Zdd� Z� fdd�Zdd� Zdd � Zd d� Z� Z S )r )� _namespace�_prefix� _interfacec C s t � �dS )z~ This method has to be implemented in child class and should set _namespace, _prefix, and _interface member attributes. N)�NotImplementedError��self� r �</usr/lib/python3.9/site-packages/tuned/utils/class_loader.py�_set_loader_parameters s z"ClassLoader._set_loader_parametersc s, t t| ��� d | _d | _d | _| �� d S )N)�superr �__init__r r r r r �� __class__r r r s zClassLoader.__init__c C s d| j | j|f }| �|�S )Nz%s.%s%s)r r � _get_class)r � class_name�module_namer r r � load_class s zClassLoader.load_classc C s� t �d| � t|�}|�d�}|�d� t|�dkrHt||�d��}q*|jD ].}t||�}t|�tu rNt || j �rN| S qNtd| ��d S )Nzloading module %s�.r zCannot find the class %s.)�log�debug� __import__�split�pop�len�getattr�__dict__�type� issubclassr �ImportError)r r �module�path�name�clsr r r r "