U
    d¿/eÅ  ã                   @   sD   d Z ddlZddlmZ dgZG dd„ dƒZG dd„ deejƒZdS )	z=Iterables of DOT source code lines (including final newline).é    Né   )ÚcopyingÚBasec                   @   s$   e Zd ZdZeje dœdd„ZdS )ÚLineIterablezQIterable of DOT Source code lines
        (mimics ``file`` objects in text mode).©Úreturnc                 C   s   t dƒ‚dS )zmYield the generated DOT source line by line.

        Yields: Line ending with a newline (``'\n'``).
        ú(to be implemented by concrete subclassesN©ÚNotImplementedError©Úself© r   ú1/tmp/pip-unpacked-wheel-n8ok7rre/graphviz/base.pyÚ__iter__   s    zLineIterable.__iter__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚtypingÚIteratorÚstrr   r   r   r   r   r   
   s   r   c                   @   s0   e Zd ZdZeedœdd„ƒZedœdd„ZdS )r   zGLineIterator with ``.source`` attribute, that it returns for ``str()``.r   c                 C   s   t dƒ‚d S )Nr   r	   r   r   r   r   Úsource   s    zBase.sourcec                 C   s   | j S )zThe DOT source code as string.)r   r   r   r   r   Ú__str__   s    zBase.__str__N)r   r   r   r   Úpropertyr   r   r   r   r   r   r   r      s   )r   r   Ú r   Ú__all__r   ZCopyBaser   r   r   r   r   Ú<module>   s
   