Your IP : 3.137.162.107


Current Path : /usr/lib/python3.6/site-packages/tuned/utils/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/tuned/utils/__pycache__/config_parser.cpython-36.pyc

3

�<�e�@s�ydZddlZWn4ek
rDdZddlZddlmZddlZYnXGdd�dej�ZerpGdd�dej�ZnGd	d�dej�ZdS)
T�NF)�StringIOc@seZdZdS)�ErrorN)�__name__�
__module__�__qualname__�rr�#/usr/lib/python3.6/config_parser.pyrsrc@seZdZdS)�ConfigParserN)rrrrrrrr	sr	c@s4eZdZd
dd�Zddd�Zddd	�Zddd�ZdS)r	NFcOs�djt|��}tjd|d|d|d�|_tjd|d|d|d�|_tjj|f|�|�|ppg|_	tjdd	jt|j	���|_
dS)
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�kwargsZdelimsrrrrs  
zConfigParser.__init__�<string>cCst|�}|j||�dS)N)r�	read_file)r�string�sourceZsfilerrr�read_string*szConfigParser.read_stringcCsbtjj|||�|jg}|j|jj��x4|D],}x&|j�D]\}}|jj	d|�||<q<Wq.WdS)Nr
)
rr	�readfpZ	_defaults�extendZ	_sections�values�itemsr�sub)r�fp�filenameZall_sectionsZoptions�name�valrrrr.s
zConfigParser.readfp�<???>cCs|j||�dS)N)r)r�frrrrr7szConfigParser.read_file)NNF)r)N)r$)rrrrrrrrrrrr	s


	)Zpython3Zconfigparserr�ImportErrorr	rr
rrrrr�<module>s

?>