]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove unused imports and variables.
authorBen Darnell <ben@bendarnell.com>
Sun, 26 Jun 2011 02:35:04 +0000 (19:35 -0700)
committerBen Darnell <ben@bendarnell.com>
Sun, 26 Jun 2011 02:35:04 +0000 (19:35 -0700)
Closes #278.

tornado/httpclient.py
tornado/websocket.py
website/website.py

index 9f45b0a8e39620109d9bc296619e3f45a5d6c987..e42a7265ef9beeecd49851363bb1664ed3b88b6b 100644 (file)
@@ -28,7 +28,6 @@ supported version is 7.18.2, and the recommended version is 7.21.1 or newer.
 import calendar
 import email.utils
 import httplib
-import os
 import time
 import weakref
 
index b8a73facf06d9dc67ef9e5f2a1bc85f4568f2074..42f312172f1fed764a19a78afc4cf0b6bf93af21 100644 (file)
@@ -163,7 +163,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
         def wrapper(*args, **kwargs):
             try:
                 return callback(*args, **kwargs)
-            except Exception, e:
+            except Exception:
                 logging.error("Uncaught exception in %s",
                               self.request.path, exc_info=True)
                 self._abort()
index 8fe0c3596de4aa6b66433a1fbdddc3842f9203c9..24acddc499b53fb0f6f3e73e9e7defc6f328ebae 100644 (file)
@@ -16,7 +16,6 @@
 
 import os
 import os.path
-import time
 import tornado.web
 import tornado.wsgi
 import wsgiref.handlers