ó æ ”\c@stddlZddlZddlmZddlmZddlmZej j ƒZ dej fd„ƒYZ dS(iÿÿÿÿNi(tbase(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. cCstt|ƒjddƒdS(NRi(tsuperRt__init__(tself((sO/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyRscCsqtt|ƒj|ƒsdS|d|dkrmtjd|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.logsttunedtRttuned.utils.commandsRttuned.profiles.exceptionsRtlogstgetR tFunctionR(((sO/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_assertion.pyts