/usr/lib/python3.9/site-packages/tuned/utils/__pycache__
Edit: /usr/lib/python3.9/site-packages/tuned/utils/__pycache__/commands.cpython-39.pyc (17100B)
a
Á]›i`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" s zcommands.unquoteú\c C s | |d||f ¡S )Nz%s%s©Úreplace)r r" Zwhat_escapeZ escape_byr r r Úescape&