관리-도구
편집 파일: composer.cpython-38.pyc
U .?�f � @ 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/hc_python/lib64/python3.8/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 r )�check_eventZStreamStartEvent� get_event�StreamEndEventr r r r � check_node s zComposer.check_nodec C s | � t�s| �� S d S r )r r �compose_documentr 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&