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

[dak/master 1/2] drop unused imports



Signed-off-by: Chris Lamb <lamby@debian.org>
---
 dak/add_user.py                 |    4 ----
 dak/admin.py                    |    1 -
 dak/check_archive.py            |    1 -
 dak/contents.py                 |    1 -
 dak/cruft_report.py             |    2 +-
 dak/dak.py                      |    1 -
 dak/generate_index_diffs.py     |    1 -
 dak/import_keyring.py           |    1 -
 dak/import_ldap_fingerprints.py |    2 +-
 dak/make_pkg_file_mapping.py    |    3 ---
 dak/process_accepted.py         |    4 +---
 dak/process_unchecked.py        |    9 ---------
 dak/queue_report.py             |    1 -
 dak/rm.py                       |    1 -
 dak/show_deferred.py            |    1 -
 dak/stats.py                    |    3 +--
 dak/transitions.py              |    1 -
 17 files changed, 4 insertions(+), 33 deletions(-)

diff --git a/dak/add_user.py b/dak/add_user.py
index 8da9dcd..77de3e3 100755
--- a/dak/add_user.py
+++ b/dak/add_user.py
@@ -18,13 +18,9 @@ add his key to the GPGKeyring
 # I know what I say. I dont know python and I wrote it. So go and read some other stuff.
 
 import commands
-import re
 import sys
-import time
-import os
 import apt_pkg
 
-from daklib import daklog
 from daklib import utils
 from daklib.dbconn import DBConn, add_database_user, get_or_set_uid
 from daklib.regexes import re_gpg_fingerprint, re_user_address, re_user_mails, re_user_name
diff --git a/dak/admin.py b/dak/admin.py
index e3d5298..eb765a6 100755
--- a/dak/admin.py
+++ b/dak/admin.py
@@ -25,7 +25,6 @@ import apt_pkg
 
 from daklib import utils
 from daklib.dbconn import *
-from daklib.config import Config
 
 ################################################################################
 
diff --git a/dak/check_archive.py b/dak/check_archive.py
index 6e3c795..2162068 100755
--- a/dak/check_archive.py
+++ b/dak/check_archive.py
@@ -40,7 +40,6 @@ import apt_inst
 
 from daklib.dbconn import *
 from daklib import utils
-from daklib.regexes import re_issource
 from daklib.config import Config
 
 ################################################################################
diff --git a/dak/contents.py b/dak/contents.py
index 9ac9995..c435afc 100755
--- a/dak/contents.py
+++ b/dak/contents.py
@@ -37,7 +37,6 @@ Create all the contents files
 import sys
 import os
 import logging
-import math
 import gzip
 import threading
 import Queue
diff --git a/dak/cruft_report.py b/dak/cruft_report.py
index cd63c2d..6337485 100755
--- a/dak/cruft_report.py
+++ b/dak/cruft_report.py
@@ -29,7 +29,7 @@
 
 ################################################################################
 
-import commands, os, sys, time, re
+import commands, os, sys, re
 import apt_pkg
 
 from daklib.config import Config
diff --git a/dak/dak.py b/dak/dak.py
index f338009..052f3b3 100755
--- a/dak/dak.py
+++ b/dak/dak.py
@@ -34,7 +34,6 @@ G{importgraph}
 ################################################################################
 
 import sys
-import imp
 import daklib.utils
 
 ################################################################################
diff --git a/dak/generate_index_diffs.py b/dak/generate_index_diffs.py
index 21c631b..4222c0c 100755
--- a/dak/generate_index_diffs.py
+++ b/dak/generate_index_diffs.py
@@ -34,7 +34,6 @@
 import sys
 import os
 import tempfile
-import subprocess
 import time
 import apt_pkg
 
diff --git a/dak/import_keyring.py b/dak/import_keyring.py
index 06597f8..0b67035 100755
--- a/dak/import_keyring.py
+++ b/dak/import_keyring.py
@@ -24,7 +24,6 @@ import apt_pkg, ldap, email.Utils
 
 from daklib.config import Config
 from daklib.dbconn import *
-from daklib import utils
 
 
 # Globals
diff --git a/dak/import_ldap_fingerprints.py b/dak/import_ldap_fingerprints.py
index ec27acb..337edb6 100755
--- a/dak/import_ldap_fingerprints.py
+++ b/dak/import_ldap_fingerprints.py
@@ -44,7 +44,7 @@
 
 ################################################################################
 
-import commands, ldap, re, sys
+import commands, ldap, sys
 import apt_pkg
 
 from daklib.config import Config
diff --git a/dak/make_pkg_file_mapping.py b/dak/make_pkg_file_mapping.py
index 38a6bec..c457820 100755
--- a/dak/make_pkg_file_mapping.py
+++ b/dak/make_pkg_file_mapping.py
@@ -31,9 +31,6 @@ and binary package version it has in a standard rfc2822-like format.
 
 ################################################################################
 
-import os
-import sys
-
 from daklib.dbconn import *
 
 ################################################################################
diff --git a/dak/process_accepted.py b/dak/process_accepted.py
index 51c6a5d..b18346c 100755
--- a/dak/process_accepted.py
+++ b/dak/process_accepted.py
@@ -40,14 +40,12 @@ import fcntl
 import os
 import sys
 from datetime import datetime
-import re
-import apt_pkg, commands
+import apt_pkg
 
 from daklib import daklog
 from daklib.queue import *
 from daklib import utils
 from daklib.dbconn import *
-from daklib.binary import copy_temporary_contents
 from daklib.dak_exceptions import *
 from daklib.regexes import re_default_answer, re_issource, re_fdnic
 from daklib.urgencylog import UrgencyLog
diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py
index cabdbf3..856c1df 100755
--- a/dak/process_unchecked.py
+++ b/dak/process_unchecked.py
@@ -34,23 +34,14 @@ Checks Debian packages from Incoming
 
 ################################################################################
 
-import commands
 import errno
 import fcntl
 import os
-import re
-import shutil
-import stat
 import sys
-import time
 import traceback
-import tarfile
-import apt_inst
 import apt_pkg
-from debian_bundle import deb822
 
 from daklib.dbconn import *
-from daklib.binary import Binary
 from daklib import daklog
 from daklib.queue import *
 from daklib import utils
diff --git a/dak/queue_report.py b/dak/queue_report.py
index c60358f..8e338e5 100755
--- a/dak/queue_report.py
+++ b/dak/queue_report.py
@@ -37,7 +37,6 @@
 from copy import copy
 import glob, os, stat, sys, time
 import apt_pkg
-import cgi
 
 from daklib import utils
 from daklib.changes import Changes
diff --git a/dak/rm.py b/dak/rm.py
index 8ed0341..fe76360 100755
--- a/dak/rm.py
+++ b/dak/rm.py
@@ -41,7 +41,6 @@
 
 import commands
 import os
-import re
 import sys
 import apt_pkg
 import apt_inst
diff --git a/dak/show_deferred.py b/dak/show_deferred.py
index d3cf653..e8e1621 100755
--- a/dak/show_deferred.py
+++ b/dak/show_deferred.py
@@ -22,7 +22,6 @@
 
 import sys, os, re, time
 import apt_pkg
-import tempfile
 from debian_bundle import deb822
 from daklib.dbconn import *
 from daklib import utils
diff --git a/dak/stats.py b/dak/stats.py
index 583178b..7c61e2a 100755
--- a/dak/stats.py
+++ b/dak/stats.py
@@ -34,8 +34,7 @@ import sys
 import apt_pkg
 
 from daklib import utils
-from daklib.dbconn import DBConn, get_suite_architectures, Suite, Architecture, \
-                          BinAssociation
+from daklib.dbconn import DBConn, get_suite_architectures, Suite, Architecture
 
 ################################################################################
 
diff --git a/dak/transitions.py b/dak/transitions.py
index acae207..4c4ac78 100755
--- a/dak/transitions.py
+++ b/dak/transitions.py
@@ -34,7 +34,6 @@ import time
 import errno
 import fcntl
 import tempfile
-import pwd
 import apt_pkg
 
 from daklib.dbconn import *
-- 
1.6.3.3



Reply to: