[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 2/3] Remove unused imports from daklib.



Signed-off-by: Chris Lamb <lamby@debian.org>
---
 daklib/database.py |    3 ---
 daklib/dbconn.py   |    2 +-
 daklib/queue.py    |    1 -
 daklib/utils.py    |    5 ++---
 4 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/daklib/database.py b/daklib/database.py
index cbdfad0..dc950f5 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 adecc38..224935d 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 d70e60b..1ece0d1 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 0420c68..457e093 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
-- 
1.6.3.3



Reply to: