ó ±2öYc@spddlZddlZddlZddlmZddlmZejj ƒZ dej fd„ƒYZ dS(iÿÿÿÿN(tcommands(tInvalidProfileExceptiont assertioncBs eZdZd„Zd„ZRS(s¶ 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. cCs t|j|ƒjddƒdS(NRi(tsupert __class__t__init__(tself((sO/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyRscCstt|j|ƒj|ƒsdS|d|dkrptjd|d|d|dfƒtd|dƒ‚ndS(Niis#assertion '%s' failed: '%s' != '%s'isAssertion '%s' failed.(RRtexecutetNonetlogterrorR(Rtargs((sO/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyRs &(t__name__t __module__t__doc__RR(((sO/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyR s ( tost tuned.logsttunedtbasettuned.utils.commandsRttuned.profiles.exceptionsRtlogstgetR tFunctionR(((sO/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyts