a
    ø£Beø  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )z
Contains debug writer.
é    )Úpprinté   )Ú
WriterBasec                   @   s   e Zd ZdZddd„ZdS )ÚDebugWriterz×Consumes output from nbconvert export...() methods and writes useful
    debugging information to the stdout.  The information includes a list of
    resources that were extracted from the notebook(s) during export.Únotebookc                 K   sN   t |d tƒr6td| ƒ tdƒ t|d ddd� ntd| ƒ tdƒ d	S )
zO
        Consume and write Jinja output.

        See base for more...
        Úoutputszoutputs extracted from %szP--------------------------------------------------------------------------------é   éF   )ÚindentÚwidthzno outputs extracted from %szP================================================================================N)Ú
isinstanceÚdictÚprintr   )ÚselfÚoutputÚ	resourcesZnotebook_nameÚkw© r   úZ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/nbconvert/writers/debug.pyÚwrite    s    zDebugWriter.writeN)r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s   r   N)r   r   Úbaser   r   r   r   r   r   Ú<module>   s   