Server IP : 149.255.58.128 / Your IP : 216.73.216.145
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib/python3.9/site-packages/tuned/utils/__pycache__//config_parser.cpython-39.pyc
a
�Գf � @ s� zd Z ddlZW n2 eyB dZ ddlZddlmZ ddlZY n0 G dd� dej�Ze rnG dd� dej�ZnG d d� dej�ZdS )
T� NF)�StringIOc @ s e Zd ZdS )�ErrorN��__name__�
__module__�__qualname__� r r �=/usr/lib/python3.9/site-packages/tuned/utils/config_parser.pyr s r c @ s e Zd ZdS )�ConfigParserNr r r r r r
s r
c @ s4 e Zd Zd
dd�Zddd�Zddd �Zddd�ZdS )r
NFc O s� d� t|��}t�d| d | d | d �| _t�d| d | d | d �| _tjj| g|�R i |�� |pvg | _ t�dd � t| j �� �| _
d S )
N� z
(?P<option>[^z\s][^z]*)\s*(?P<vi>[z])\s*(?P<value>.*)$z]*)\s*(?:(?P<vi>[z])\s*(?P<value>.*))?$z \s+(%s).*z)|()�join�list�re�compileZOPTCREZ OPTCRE_NV�cpr
�__init__Z_inline_comment_prefixes�_re)�selfZ
delimitersZinline_comment_prefixes�strict�args�kwargsZdelimsr r r r s$ ������
zConfigParser.__init__�<string>c C s t |�}| �||� d S �N)r � read_file)r �string�sourceZsfiler r r �read_string* s zConfigParser.read_stringc C sZ t j�| ||� | jg}|�| j�� � |D ](}|�� D ]\}}| j� d|�||<