Viewing File: /lib/python3.6/site-packages/tuned/profiles/functions/__pycache__/function_assertion.cpython-36.pyc

3

�<�e��@sTddlZddlZddlmZddlmZddlmZej	j
�ZGdd�dej�Z
dS)�N�)�base)�commands)�InvalidProfileExceptioncs,eZdZdZ�fdd�Z�fdd�Z�ZS)�	assertionz�
	Assertion: compares argument 2 with argument 3. If they don't match
	it logs text from argument 1 and  throws InvalidProfileException. This
	exception will abort profile loading.
	cstt|�jddd�dS)Nr�)�superr�__init__)�self)�	__class__��(/usr/lib/python3.6/function_assertion.pyr	szassertion.__init__csXtt|�j|�sdS|d|dkrTtjd|d|d|df�td|d��dS)Nr�z#assertion '%s' failed: '%s' != '%s'rzAssertion '%s' failed.)rr�execute�log�errorr)r
�args)rrr
rs zassertion.execute)�__name__�
__module__�__qualname__�__doc__r	r�
__classcell__rr)rr
r	sr)�osZ
tuned.logsZtuned�rZtuned.utils.commandsrZtuned.profiles.exceptionsrZlogs�getrZFunctionrrrrr
�<module>s

Back to Directory File Manager
<