HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/iniconfig/__pycache__/_parse.cpython-310.pyc
o

we�	�@sZddlmZddlmZddlmZdZGdd�de�Zddd�Zddd�Z	ddd�Z
dS)�)�annotations�)�
ParseError)�
NamedTuplez#;c@s.eZdZUded<ded<ded<ded<dS)�_ParsedLine�int�linenoz
str | None�section�name�valueN)�__name__�
__module__�__qualname__�__annotations__�rr�I/home/arjun/projects/env/lib/python3.10/site-packages/iniconfig/_parse.pyr
s

r�path�str�	line_iter�	list[str]�return�list[_ParsedLine]c	Csg}d}t|�D]v\}}t|||�\}}|dur'|dur'|�t||||��q|durD|durD|s7t||d��|}|�t||dd��q|dur~|dur~|sTt||d��|��}|jdurct||d��|jrs|j|j�d|��d�}n|j|d�}|�|�q|S)Nzempty section namezunexpected value continuation�
)r)	�	enumerate�
_parseline�appendrr�popr
r�_replace)	rr�resultr	r�liner
�data�lastrrr�parse_liness.

�r"rrr�tuple[str | None, str | None]cCst|�rd}n|��}|sdS|ddkr9|}tD]}|�|�d��}q|ddkr3|dd�dfSd|��fS|d��s|z|�dd�\}}d	|vrOt��Wn#tysz
|�d	d�\}}Wntypt||d
|��wYnw|��|��fSd|��fS)N�)NNr�[����]r�=�:zunexpected line: %r)�
iscommentline�rstrip�COMMENTCHARS�split�strip�isspace�
ValueErrorr)rrr�realline�cr
rrrrr/s8����r�boolcCs|��dd�}|tvS)Nr)�lstripr,)rr2rrrr*Psr*N)rrrrrr)rrrrrrrr#)rrrr3)�
__future__r�
exceptionsr�typingrr,rr"rr*rrrr�<module>s

!