관리-도구
편집 파일: config_parser.cpython-36.opt-1.pyc
3 �<�e � @ s� yd Z ddlZW n4 ek rD dZ ddlZddlmZ ddlZY nX G dd� dej�Ze rpG dd� dej�ZnG d d� dej�ZdS ) T� NF)�StringIOc @ s e Zd ZdS )�ErrorN)�__name__� __module__�__qualname__� r r �#/usr/lib/python3.6/config_parser.pyr s r c @ s e Zd ZdS )�ConfigParserN)r r r r r r r r s r c @ s4 e Zd Zd dd�Zddd�Zddd �Zddd�ZdS )r NFc O s� dj t|��}tjd| d | d | d �| _tjd| d | d | d �| _tjj| f|�|� |ppg | _ tjdd j 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 |�}| j||� d S )N)r � read_file)r �string�sourceZsfiler r r �read_string* s zConfigParser.read_stringc C sb t jj| ||� | jg}|j| jj� � x4|D ],}x&|j� D ]\}}| jj d|�||<