HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/repository.cpython-39.pyc
a

,�g��@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