__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.200: ~ $
3

�<�eQ	�@sJddlmZmZddlmZddlZdZdZdZdZ	dZ
Gd	d
�d
�ZdS)�)�ConfigParser�Error)�TunedExceptionNzpower-saverZperformance�mainZprofiles�defaultc@s@eZdZdd�Zedd��Zedd��Zedd��Zd	d
�ZdS)�	PPDConfigcCs|j|�dS)N)�load_from_file)�self�config_file�r�/usr/lib/python3.6/config.py�__init__szPPDConfig.__init__cCs|jS)N)�_default_profile)r	rrr�default_profileszPPDConfig.default_profilecCs|jS)N)�
_ppd_to_tuned)r	rrr�ppd_to_tunedszPPDConfig.ppd_to_tunedcCs|jS)N)�
_tuned_to_ppd)r	rrr�tuned_to_ppdszPPDConfig.tuned_to_ppdcCsRt�}tjj|�std|��y|j|�Wn tk
rLtd|��YnXt|krbtd|��t|t�|_	t
dd�|j	j�D��s�td|��tt
|j	j���t|j	�kr�td|��dd	�|j	j�D�|_t|j	kr�td
|��t|j	k�rtd|��t|k�st|tk�r$td|��|tt|_|j|j	k�rNtd
|j��dS)Nz&Configuration file '%s' does not existz)Error parsing the configuration file '%s'z7Missing profiles section in the configuration file '%s'css|]}t|t�VqdS)N)�
isinstance�str)�.0Zmapped_profilerrr�	<genexpr>+sz+PPDConfig.load_from_file.<locals>.<genexpr>z6Invalid profile mapping in the configuration file '%s'z8Duplicate profile mapping in the configuration file '%s'cSsi|]\}}||�qSrr)r�k�vrrr�
<dictcomp>0sz,PPDConfig.load_from_file.<locals>.<dictcomp>z:Missing power-saver profile in the configuration file '%s'z:Missing performance profile in the configuration file '%s'z6Missing default profile in the configuration file '%s'zUnknown default profile '%s')r�os�path�isfiler�readr�PROFILES_SECTION�dictr�all�values�len�set�itemsr�PPD_POWER_SAVER�PPD_PERFORMANCE�MAIN_SECTION�DEFAULT_PROFILE_OPTIONr)r	r
Zcfgrrrrs0
zPPDConfig.load_from_fileN)	�__name__�
__module__�__qualname__r
�propertyrrrrrrrrr
s
r)Ztuned.utils.config_parserrrZtuned.exceptionsrrr&r'r(rr)rrrrr�<module>s

Filemanager

Name Type Size Permission Actions
config.cpython-36.opt-1.pyc File 2.53 KB 0644
config.cpython-36.pyc File 2.53 KB 0644
controller.cpython-36.opt-1.pyc File 8.49 KB 0644
controller.cpython-36.pyc File 8.49 KB 0644