summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 20:13:12 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 20:20:52 +0100
commitb796eb8031342f8815506f69e5c19d97cccdfa03 (patch)
treee6c1e1a06fcca1d241be27f3b199c94dfcfa53ad
parenta78d5086d9f0eabe9234ba3db5d15bd728512376 (diff)
downloadlorry-controller-b796eb8031342f8815506f69e5c19d97cccdfa03.tar.gz
Delete unused module imports
Various modules are imported and not used. Caught by pyflakes.
-rwxr-xr-xlorry-controller-remove-old-jobs1
-rw-r--r--lorrycontroller/gitano.py1
-rw-r--r--lorrycontroller/gitlab.py1
-rw-r--r--lorrycontroller/jobupdate.py1
-rw-r--r--lorrycontroller/maxjobs.py2
-rw-r--r--lorrycontroller/pretendtime.py6
-rw-r--r--lorrycontroller/removeghostjobs.py3
7 files changed, 0 insertions, 15 deletions
diff --git a/lorry-controller-remove-old-jobs b/lorry-controller-remove-old-jobs
index 78b5596..a69e505 100755
--- a/lorry-controller-remove-old-jobs
+++ b/lorry-controller-remove-old-jobs
@@ -20,7 +20,6 @@ import json
import logging
import time
import urllib.request, urllib.error, urllib.parse
-import contextlib
import cliapp
diff --git a/lorrycontroller/gitano.py b/lorrycontroller/gitano.py
index 46174ad..8587737 100644
--- a/lorrycontroller/gitano.py
+++ b/lorrycontroller/gitano.py
@@ -22,7 +22,6 @@ import urllib.request, urllib.error, urllib.parse
import cliapp
import requests
-import lorrycontroller
from . import hosts
diff --git a/lorrycontroller/gitlab.py b/lorrycontroller/gitlab.py
index 266861c..bb603de 100644
--- a/lorrycontroller/gitlab.py
+++ b/lorrycontroller/gitlab.py
@@ -22,7 +22,6 @@ to the targetted group.
'''
import logging
-import re
import urllib.parse
try:
diff --git a/lorrycontroller/jobupdate.py b/lorrycontroller/jobupdate.py
index ec7e533..0b86b63 100644
--- a/lorrycontroller/jobupdate.py
+++ b/lorrycontroller/jobupdate.py
@@ -15,7 +15,6 @@
import logging
-import time
import bottle
diff --git a/lorrycontroller/maxjobs.py b/lorrycontroller/maxjobs.py
index ce594c2..3f766a4 100644
--- a/lorrycontroller/maxjobs.py
+++ b/lorrycontroller/maxjobs.py
@@ -15,8 +15,6 @@
import logging
-import os
-import time
import bottle
diff --git a/lorrycontroller/pretendtime.py b/lorrycontroller/pretendtime.py
index 3fd1a70..8a34d0d 100644
--- a/lorrycontroller/pretendtime.py
+++ b/lorrycontroller/pretendtime.py
@@ -14,15 +14,9 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-import errno
-import glob
-import json
import logging
-import os
-import re
import bottle
-import cliapp
import lorrycontroller
diff --git a/lorrycontroller/removeghostjobs.py b/lorrycontroller/removeghostjobs.py
index 2b2760c..81ff014 100644
--- a/lorrycontroller/removeghostjobs.py
+++ b/lorrycontroller/removeghostjobs.py
@@ -15,9 +15,6 @@
import logging
-import time
-
-import bottle
import lorrycontroller