Your IP : 18.191.200.151
3
<z�W � @ 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 � /usr/lib64/python3.6/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 | j t�r| j� | j t� S )N)�check_eventZStreamStartEvent� get_event�StreamEndEvent)r r r r
�
check_node s
zComposer.check_nodec C s | j t�s| j� S d S )N)r r �compose_document)r r r r
�get_node s
zComposer.get_nodec C sN | j � d }| jt�s| j� }| jt�sB| j � }td|jd|j��| 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&