%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/repository.cpython-39.pyc

a

���h��@sVddlmZddlmZddlmZddlZddlm	Z	ej
��ZGdd�de�Z
dS)�)�ClassLoader)�Parser)�FunctionNcsTeZdZdZ�fdd�Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Z�ZS)�
Repositoryzk
	Repository of functions used within TuneD profiles.
	The functions are loaded lazily (when first used).
	cstt|���i|_dS�N)�superr�__init__�
_functions��self��	__class__��G/usr/lib/python3.9/site-packages/tuned/profiles/functions/repository.pyrszRepository.__init__cCs|jSr)r	r
rrr�	functionsszRepository.functionscCsd|_tj|_t|_dS)Nztuned.profiles.functions)Z
_namespace�constsZFUNCTION_PREFIX�_prefixr�
_interfacer
rrr�_set_loader_parameterssz!Repository._set_loader_parameterscCs,t�d|�|�|�}|�}||j|<|S)Nzcreating function %s)�log�debugZ
load_classr	)r�
function_nameZfunction_clsZfunction_instancerrr�creates


zRepository.createcCs||jvr|�|�S|j|Sr)r	r)rrrrr�	load_func%s

zRepository.load_funccCsJt||j�sJ�t�d|�t|j���D]\}}||kr,|j|=q,dS)Nzremoving function %s)�
isinstancerrr�listr	�items)r�function�k�vrrr�delete*s
zRepository.deletecCst|��|�Sr)r�expand)r�srrrr!1szRepository.expand)
�__name__�
__module__�__qualname__�__doc__r�propertyrrrrr r!�
__classcell__rrrrr	s
	r)Ztuned.utils.class_loaderrZtuned.profiles.functions.parserrZtuned.profiles.functions.baserZ
tuned.logsZtunedZtuned.constsrZlogs�getrrrrrr�<module>s


Zerion Mini Shell 1.0