?????????? ????????? - ??????????????? - /usr/lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/function_assertion.cpython-39.opt-1.pyc
???????
a ���h� � @ sT d dl Z d dlZddlmZ d dlmZ d dlmZ ej � � ZG dd� dej�Z dS )� N� )�base)�commands)�InvalidProfileExceptionc s, e Zd ZdZ� 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. c s t t| ��ddd� d S )Nr � )�superr �__init__)�self�� __class__� �O/usr/lib/python3.9/site-packages/tuned/profiles/functions/function_assertion.pyr s zassertion.__init__c sX t t| ��|�sd S |d |d krTt�d|d |d |d f � td|d ��d S )Nr � z#assertion '%s' failed: '%s' != '%s'r zAssertion '%s' failed.)r r �execute�log�errorr )r �argsr r r r s zassertion.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r r r r s r )�osZ tuned.logsZtuned� r Ztuned.utils.commandsr Ztuned.profiles.exceptionsr Zlogs�getr ZFunctionr r r r r �<module> s
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????