Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
À<×eQ ã @ sJ d dl mZmZ d dlmZ d dlZdZdZdZdZ dZ
G d d
„ d
ƒZdS )é )ÚConfigParserÚError)ÚTunedExceptionNzpower-saverZperformanceÚmainZprofilesÚdefaultc @ s@ e Zd Zdd„ Zedd„ ƒZedd„ ƒZedd„ ƒZd d
„ ZdS )Ú PPDConfigc C s | j |ƒ d S )N)Úload_from_file)ÚselfÚconfig_file© r ú/usr/lib/python3.6/config.pyÚ__init__ s zPPDConfig.__init__c C s | j S )N)Ú_default_profile)r r r r Údefault_profile s zPPDConfig.default_profilec C s | j S )N)Ú
_ppd_to_tuned)r r r r Úppd_to_tuned s zPPDConfig.ppd_to_tunedc C s | j S )N)Ú
_tuned_to_ppd)r r r r Útuned_to_ppd s zPPDConfig.tuned_to_ppdc C sR t ƒ }tjj|ƒstd| ƒ‚y|j|ƒ W n tk
rL td| ƒ‚Y nX t|krbtd| ƒ‚t|t ƒ| _ t
dd„ | j jƒ D ƒƒs”td| ƒ‚tt
| j jƒ ƒƒt| j ƒkr¼td| ƒ‚dd „ | j jƒ D ƒ| _t| j krètd
| ƒ‚t| j k�r td| ƒ‚t|k�st|t k�r$td| ƒ‚|t t | _| j| j k�rNtd
| j ƒ‚d S )Nz&Configuration file '%s' does not existz)Error parsing the configuration file '%s'z7Missing profiles section in the configuration file '%s'c s s | ]}t |tƒV qd S )N)Ú
isinstanceÚstr)Ú.0Zmapped_profiler r r ú + s z+PPDConfig.load_from_file..z6Invalid profile mapping in the configuration file '%s'z8Duplicate profile mapping in the configuration file '%s'c S s i | ]\}}||“qS r r )r ÚkÚvr r r ú
0 s z,PPDConfig.load_from_file..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
Zcfgr r r r s0
zPPDConfig.load_from_fileN) Ú__name__Ú
__module__Ú__qualname__r
Úpropertyr r r r r r r r r
s
r )Ztuned.utils.config_parserr r Ztuned.exceptionsr r r&