관리-도구
편집 파일: composer.cpython-37.opt-1.pyc
B b�` � @ sF d dgZ ddlmZ ddlT ddlT G dd� de�ZG dd � d �ZdS )�Composer� ComposerError� )�MarkedYAMLError)�*c @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �@/opt/alt/python37/lib64/python3.7/site-packages/yaml/composer.pyr s c @ sT e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� ZdS )r c C s i | _ d S )N)�anchors)�selfr r r �__init__ s zComposer.__init__c C s | � t�r| �� | � t� S )N)�check_eventZStreamStartEvent� get_event�StreamEndEvent)r r r r � check_node s zComposer.check_nodec C s | � t�s| �� S d S )N)r r �compose_document)r r r r �get_node s zComposer.get_nodec C sN | � � d }| �t�s| �� }| �t�sB| � � }td|jd|j��| � � |S )Nz(expected a single document in the streamzbut found another document)r r r r r � start_mark)r Zdocument�eventr r r �get_single_node s zComposer.get_single_nodec C s&