B
    Z[
                 @   s<   d Z ddlmZ ddlmZ ddlmZ G dd deZdS )	z
Contains debug writer.
    )print_function   )
WriterBase)pprintc               @   s   e Zd ZdZdddZdS )DebugWriterzConsumes 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...
        Zoutputszoutputs extracted from %szP--------------------------------------------------------------------------------   F   )indentwidthzno outputs extracted from %szP================================================================================N)
isinstancedictprintr   )selfoutputZ	resourcesZnotebook_namekw r   6lib/python3.7/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   Z
__future__r   baser   r   r   r   r   r   r   <module>   s   