U
    nuf                     @   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 )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...
        outputszoutputs extracted from %szP--------------------------------------------------------------------------------   F   )indentwidthzno outputs extracted from %szP================================================================================N)
isinstancedictprintr   )selfoutput	resourcesZnotebook_namekw r   ;/tmp/pip-unpacked-wheel-nxpdnluh/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   