mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
remove unused TreeRedirectHandler
This commit is contained in:
parent
379374b5d9
commit
dbe65d0cd5
@ -59,18 +59,6 @@ class TreeHandler(IPythonHandler):
|
||||
))
|
||||
|
||||
|
||||
class TreeRedirectHandler(IPythonHandler):
|
||||
"""Redirect a request to the corresponding tree URL"""
|
||||
|
||||
@web.authenticated
|
||||
def get(self, path=''):
|
||||
url = url_escape(url_path_join(
|
||||
self.base_url, 'tree', path.strip('/')
|
||||
))
|
||||
self.log.debug("Redirecting %s to %s", self.request.path, url)
|
||||
self.redirect(url)
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# URL to handler mappings
|
||||
#-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user