B
    K๔Z  ใ               @   s0   d Z ddlmZ ddlmZ G dd deZdS )z
Contains writer base class.
้    )ฺList้   )ฺNbConvertBasec                   s>   e Zd ZdZeg ddjddZd fdd	Zd	d
 Z  Z	S )ฺ
WriterBasezXConsumes output from nbconvert export...() methods and writes to a
    useful location. zn
        List of the files that the notebook references.  Files will be 
        included with written output.)ฺhelpT)ฺconfigNc                s   t t| jf d|i| dS )z
        Constructor
        r   N)ฺsuperr   ฺ__init__)ฺselfr   ฺkw)ฺ	__class__ฉ ๚5lib/python3.7/site-packages/nbconvert/writers/base.pyr	      s    zWriterBase.__init__c             K   s
   t  dS )aง  
        Consume and write Jinja output.

        Parameters
        ----------
        output : string
            Conversion results.  This string contains the file contents of the
            converted file.
        resources : dict
            Resources created and filled by the nbconvert conversion process.
            Includes output from preprocessors, such as the extract figure
            preprocessor.
        N)ฺNotImplementedError)r
   ฺoutputZ	resourcesr   r   r   r   ฺwrite   s    zWriterBase.write)N)
ฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__r   ฺtagฺfilesr	   r   ฺ__classcell__r   r   )r   r   r      s
   r   N)r   Z	traitletsr   Z
utils.baser   r   r   r   r   r   ฺ<module>   s   