
    Ib                     D    d Z ddlmZmZ ddlmZ  G d de      ZdefgZy)z/HTTP handler to shut down the notebook server.
    )webioloop)IPythonHandlerc                   0    e Zd Zej                  d        Zy)ShutdownHandlerc                     | j                   j                  d       t        j                  j	                         j                          y )Nz'Shutting down on /api/shutdown request.)loginfor   IOLoopcurrentstop)selfs    </usr/lib/python3/dist-packages/notebook/services/shutdown.pypostzShutdownHandler.post   s,    ?@$$&    N)__name__
__module____qualname__r   authenticatedr    r   r   r   r      s    ' 'r   r   z/api/shutdownN)__doc__tornador   r   notebook.base.handlersr   r   default_handlersr   r   r   <module>r      s.     1'n ' ' r   