From e50faf0cd6b832dad7521067d6d3ac7cce52443b 2012-12-18 19:42:53
From: Cameron Bates <cameron.r.bates@gmail.com>
Date: 2012-12-18 19:42:53
Subject: [PATCH] Use the correct tornado import as suggested by @ivanov

---

diff --git a/IPython/frontend/html/notebook/handlers.py b/IPython/frontend/html/notebook/handlers.py
index f986805..c2b64e5 100644
--- a/IPython/frontend/html/notebook/handlers.py
+++ b/IPython/frontend/html/notebook/handlers.py
@@ -29,7 +29,7 @@ import time
 import uuid
 import os
 
-import tornado
+from tornado.escape import url_escape
 from tornado import web
 from tornado import websocket
 
@@ -226,7 +226,7 @@ class LoginHandler(AuthenticatedHandler):
     def _render(self, message=None):        
         template = self.application.jinja2_env.get_template('login.html')
         self.write( template.render(
-                next=tornado.escape.url_escape(self.get_argument('next', default=self.application.ipython_app.base_project_url)),
+                next=url_escape(self.get_argument('next', default=self.application.ipython_app.base_project_url)),
                 read_only=self.read_only,
                 logged_in=self.logged_in,
                 login_available=self.login_available,