From b796eb8031342f8815506f69e5c19d97cccdfa03 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 10 Aug 2020 20:13:12 +0100 Subject: Delete unused module imports Various modules are imported and not used. Caught by pyflakes. --- lorry-controller-remove-old-jobs | 1 - lorrycontroller/gitano.py | 1 - lorrycontroller/gitlab.py | 1 - lorrycontroller/jobupdate.py | 1 - lorrycontroller/maxjobs.py | 2 -- lorrycontroller/pretendtime.py | 6 ------ lorrycontroller/removeghostjobs.py | 3 --- 7 files changed, 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 -- cgit v1.2.1