%PDF- %PDF-
| Direktori : /usr/lib/python3.9/site-packages/tuned/utils/__pycache__/ |
| Current File : //usr/lib/python3.9/site-packages/tuned/utils/__pycache__/commands.cpython-39.opt-1.pyc |
a
���h`C � @ st d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dl Z d dl
T d dlmZ ej
�� ZG dd� d�ZdS )� N)�*)�TunedExceptionc @ s� e Zd Zdfdd�Zdd� Zdd� Zdd � Zd
d� Zdd
� Zdgdd�Z dhdd�Z
dd� Zdd� Zdd� Z
didd�Zdjdd�Zdkd d!�Zdld#d$�Zdmd%d&�Zdnd'd(�Zdod)d*�Zdpd+d,�Zd-d.� Zd/d0� Zdqd1d2�Zd3d4� Zd5d6� Zdrd7d8�Zddi g dfd9d:�Zdsd;d<�Zd=d>� Zd?d@� ZdAdB� Z dtdDdE�Z!dFdG� Z"dHdI� Z#dJdK� Z$dLdM� Z%dudNdO�Z&dPdQ� Z'dRdS� Z(dTdU� Z)dVdW� Z*dXdY� Z+dZd[� Z,d\d]� Z-d^d_� Z.d`da� Z/dbdc� Z0ddde� Z1dS )v�commandsTc C s
|| _ d S �N)�_logging)�selfZlogging� r �8/usr/lib/python3.9/site-packages/tuned/utils/commands.py�__init__ s zcommands.__init__c C s | j rt�|� d S r )r �log�error�r �msgr r r �_error s zcommands._errorc C s | j rt�|� d S r )r r �debugr
r r r �_debug s zcommands._debugc C s. t |��� �� }ddddddddd��||�S )N�1�0)�YZYES�TZTRUE�NZNO�FZFALSE)�str�upper�strip�get)r �value�vr r r �get_bool s zcommands.get_boolc C s t �ddt|���� S )Nz\s+� )�re�subr r )r �sr r r � remove_ws s zcommands.remove_wsc C s t �dd|�S )Nz^"(.*)"$z\1)r r! )r r r r r �unquote"