a
    ø£Beù  ã                   @   s$   d Z G dd„ dƒZG dd„ dƒZdS )zNBase classes and function for readers and writers.

Authors:

* Brian Granger
c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚNotebookReaderzThe base notebook reader.c                 K   s   d}t |ƒ‚dS )zRead a notebook from a string.ú'loads must be implemented in a subclassN©ÚNotImplementedError)ÚselfÚsÚkwargsÚmsg© r	   úU/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/nbformat/v1/rwbase.pyÚreads   s    zNotebookReader.readsc                 K   s   | j | ¡ fi |¤ŽS )z'Read a notebook from a file like object)r   Úread)r   Úfpr   r	   r	   r
   r       s    zNotebookReader.readN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r	   r	   r	   r
   r      s   r   c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚNotebookWriterzThe base notebook writer.c                 K   s   d}t |ƒ‚dS )zWrite a notebook to a string.r   Nr   )r   Únbr   r   r	   r	   r
   Úwrites(   s    zNotebookWriter.writesc                 K   s   |  | j|fi |¤Ž¡S )z&Write a notebook to a file like object)Úwriter   )r   r   r   r   r	   r	   r
   r   -   s    zNotebookWriter.writeN)r   r   r   r   r   r   r	   r	   r	   r
   r   %   s   r   N)r   r   r   r	   r	   r	   r
   Ú<module>   s   