
    IbY                     V    d Z ddlmZ ddlmZmZ ddlmZ  G d de      Zde efgZ	y	)
z+Tornado handlers for the terminal emulator.    )web   )IPythonHandler
path_regex)
url_escapec                   4    e Zd ZdZej
                  d        Zy)EditorHandlerz!Render the text editor interface.c           	         |j                  d      }| j                  j                  |      st        j                  dd|       |j                  dd      d   }| j                  | j                  dt        |      ||dz                y )	N/i  zFile does not exist:    z	edit.htmlz
 (editing))	file_pathbasename
page_title)	stripcontents_managerfile_existsr   	HTTPErrorrsplitwriterender_templater   )selfpathr   s      8/usr/lib/python3/dist-packages/notebook/edit/handlers.pygetzEditorHandler.get   s    zz#$$006--'<TF%CDD;;sA&r*

4'' &,. (  	
    N)__name__
__module____qualname____doc__r   authenticatedr    r   r   r	   r	   
   s    +
 
r   r	   z/editN)
r    tornador   base.handlersr   r   utilsr   r	   default_handlersr"   r   r   <module>r'      s8    1
  6 
N 
" 	j\M* r   