B
    3\n                 @   sN   d Z ddlmZ ddlmZmZ ddlmZ G dd deZde efgZ	d	S )
z+Tornado handlers for the terminal emulator.    )web   )IPythonHandler
path_regex)
url_escapec               @   s   e Zd ZdZejdd ZdS )EditorHandlerz!Render the text editor interface.c             C   sZ   | d}| j|s&tdd| |ddd }| | jdt|||d d d S )	N/i  zFile does not exist: %s   z	edit.htmlz
 (editing))Z	file_pathbasenameZ
page_title)	stripZcontents_managerZfile_existsr   Z	HTTPErrorrsplitwriteZrender_templater   )selfpathr    r   5lib/python3.7/site-packages/notebook/edit/handlers.pyget   s    

zEditorHandler.getN)__name__
__module____qualname____doc__r   Zauthenticatedr   r   r   r   r   r      s   r   z/edit%sN)
r   Ztornador   Zbase.handlersr   r   Zutilsr   r   Zdefault_handlersr   r   r   r   <module>   s
   