diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 9f45b0a8e3..e42a7265ef 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -28,7 +28,6 @@ import calendar import email.utils import httplib -import os import time import weakref diff --git a/tornado/websocket.py b/tornado/websocket.py index b8a73facf0..42f312172f 100644 --- a/tornado/websocket.py +++ b/tornado/websocket.py @@ -163,7 +163,7 @@ def async_callback(self, callback, *args, **kwargs): 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() diff --git a/website/website.py b/website/website.py index 8fe0c3596d..24acddc499 100644 --- a/website/website.py +++ b/website/website.py @@ -16,7 +16,6 @@ import os import os.path -import time import tornado.web import tornado.wsgi import wsgiref.handlers