ó
§‰]c           @  sP   d  Z  d d l m Z d d l m Z d d l m Z d e f d „  ƒ  YZ d S(	   s   
Contains debug writer.
iÿÿÿÿ(   t   print_functioni   (   t
   WriterBase(   t   pprintt   DebugWriterc           B  s   e  Z d  Z d d „ Z RS(   s×   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.t   notebookc         K  sl   t  | d t ƒ rL t d | ƒ t d d ƒ t | d d d d d ƒn t d	 | ƒ t d
 d ƒ d S(   sO   
        Consume and write Jinja output.

        See base for more...
        t   outputss   outputs extracted from %st   -iP   t   indenti   t   widthiF   s   no outputs extracted from %st   =N(   t
   isinstancet   dictt   printR   (   t   selft   outputt	   resourcest   notebook_namet   kw(    (    s6   lib/python2.7/site-packages/nbconvert/writers/debug.pyt   write   s    (   t   __name__t
   __module__t   __doc__R   (    (    (    s6   lib/python2.7/site-packages/nbconvert/writers/debug.pyR      s   N(   R   t
   __future__R    t   baseR   R   R   (    (    (    s6   lib/python2.7/site-packages/nbconvert/writers/debug.pyt   <module>   s   