From: Chris Lamb Date: Tue, 27 Oct 2009 16:35:26 +0000 (+0000) Subject: Remove unused imports from daklib. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3a55501ad9f5eaed322f5ea8365bb799e468b2e2;p=dak.git Remove unused imports from daklib. Signed-off-by: Chris Lamb --- diff --git a/daklib/database.py b/daklib/database.py index cbdfad04..dc950f58 100755 --- a/daklib/database.py +++ b/daklib/database.py @@ -30,9 +30,6 @@ ################################################################################ -import sys -import time -import types import utils import pg diff --git a/daklib/dbconn.py b/daklib/dbconn.py index adecc38a..224935dd 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -39,7 +39,7 @@ import traceback from inspect import getargspec -from sqlalchemy import create_engine, Table, MetaData, select +from sqlalchemy import create_engine, Table, MetaData from sqlalchemy.orm import sessionmaker, mapper, relation # Don't remove this, we re-export the exceptions to scripts which import us diff --git a/daklib/queue.py b/daklib/queue.py index d70e60b1..1ece0d1d 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -26,7 +26,6 @@ Queue utility functions for dak ############################################################################### -import cPickle import errno import os import pg diff --git a/daklib/utils.py b/daklib/utils.py index 0420c682..457e093c 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -22,7 +22,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -import codecs import commands import email.Header import os @@ -46,8 +45,8 @@ from dak_exceptions import * from textutils import fix_maintainer from regexes import re_html_escaping, html_escaping, re_single_line_field, \ re_multi_line_field, re_srchasver, re_verwithext, \ - re_parse_maintainer, re_taint_free, re_gpg_uid, \ - re_re_mark, re_whitespace_comment, re_issource + re_taint_free, re_gpg_uid, re_re_mark, \ + re_whitespace_comment, re_issource from srcformats import srcformats from collections import defaultdict