]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove unused imports and variables
authorRobert Buchholz <rbu@goodpoint.de>
Tue, 13 Jul 2010 08:26:01 +0000 (10:26 +0200)
committerRobert Buchholz <rbu@goodpoint.de>
Tue, 13 Jul 2010 08:26:01 +0000 (10:26 +0200)
tornado/auth.py
tornado/autoreload.py
tornado/database.py
tornado/httpclient.py
tornado/httpserver.py
tornado/locale.py

index 57db36e91b9f80bf846fa4d3e7cea2b95521a01a..4575119090e2dec71cde92373b6001ce8ce13774 100644 (file)
@@ -45,7 +45,6 @@ class GoogleHandler(tornado.web.RequestHandler, tornado.auth.GoogleMixin):
 
 """
 
-import base64
 import binascii
 import cgi
 import hashlib
index 522d140f2234ddeba024d7cd7c3c822e74363073..876c76d73f5fe8afcf589a0a2806aaca3fe3a247 100644 (file)
@@ -21,11 +21,9 @@ and Google AppEngine.
 """
 
 import functools
-import errno
 import ioloop
 import logging
 import os
-import os.path
 import sys
 import types
 
@@ -86,7 +84,7 @@ def _reload_on_update(io_loop, modify_times):
                 signal.setitimer(signal.ITIMER_REAL, 0, 0)
             try:
                 os.execv(sys.executable, [sys.executable] + sys.argv)
-            except OSError, e:
+            except OSError:
                 # Mac OS X versions prior to 10.6 do not support execv in
                 # a process that contains multiple threads.  Instead of
                 # re-executing in the current process, start a new one
index 190a804da7706503ba3a51a119dc3073fee54444..22c745492d04f71a94aa9fdc6e3d769a4d70a139 100644 (file)
@@ -17,7 +17,6 @@
 """A lightweight wrapper around MySQLdb."""
 
 import copy
-import MySQLdb
 import MySQLdb.constants
 import MySQLdb.converters
 import MySQLdb.cursors
index 26adf85279762c1d822aade1ae03856b0872fca6..e48732b77f3bcc1819b21ba6a99fefd9a2d9a78e 100644 (file)
@@ -22,7 +22,6 @@ import cStringIO
 import email.utils
 import errno
 import escape
-import functools
 import httplib
 import httputil
 import ioloop
index ad7ab077aec6124396921d0a0298f0cd6928bf9f..267960a452827fa8175e58e4cd92601a02cef2cb 100644 (file)
@@ -18,7 +18,6 @@
 
 import cgi
 import errno
-import functools
 import httputil
 import ioloop
 import iostream
index 488ea2c599c2f8e7df23fcc95c3d8f3095f4cd23..a2d9b2b139eda436f09004e7c811942b526e9e75 100644 (file)
@@ -43,8 +43,6 @@ import csv
 import datetime
 import logging
 import os
-import os.path
-import re
 
 _default_locale = "en_US"
 _translations = {}