Your IP : 3.15.10.117


Current Path : /usr/lib/python3.6/site-packages/tuned/profiles/functions/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/tuned/profiles/functions/__pycache__/base.cpython-36.opt-1.pyc

3

�<�e�@s:ddlZddlZddlmZejj�ZGdd�de�Z	dS)�N)�commandsc@s0eZdZdZd	dd�Zed
dd��Zdd�ZdS)�Functionz
	Built-in function
	NcCs||_||_||_t�|_dS)N)�_name�
_nargs_max�
_nargs_minrZ_cmd)�self�name�	nargs_max�	nargs_min�r�/usr/lib/python3.6/base.py�__init__szFunction.__init__cCs<|dks|dkrdSt|�}|dks,||ko:|dkp:||kS)NFr)�len)�cls�argsr	r
Zlarrr�_check_argsszFunction._check_argscCs*|j||j|j�rdStjd|j�dS)NTz5invalid number of arguments for builtin function '%s'F)rrr�log�errorr)rrrrr�executeszFunction.execute)N)N)�__name__�
__module__�__qualname__�__doc__r
�classmethodrrrrrrrs

r)
�osZ
tuned.logsZtunedZtuned.utils.commandsrZlogs�getr�objectrrrrr�<module>s


?>