diff options
author | Frazer Clews <frazer.clews@codethink.co.uk> | 2020-01-16 16:55:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-19 13:31:05 +0000 |
commit | 0ac5174c7d39a3e49893df0d517d47bec1935555 (patch) | |
tree | 479496afb1da7814071e39e888e8926cd03bec57 /bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |
parent | 444bcb6cb6be8d5205fc88790360d864e633a555 (diff) | |
download | poky-0ac5174c7d39a3e49893df0d517d47bec1935555.tar.gz |
bitbake: lib: remove unused imports
removed unused imports which made the code harder to read, and slightly
but less efficient
(Bitbake rev: 4367692a932ac135c5aa4f9f2a4e4f0150f76697)
Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 39ea736b58..75674ccbf1 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -7,27 +7,24 @@ | |||
7 | # | 7 | # |
8 | 8 | ||
9 | import os | 9 | import os |
10 | import sys | ||
11 | import re | 10 | import re |
12 | import shutil | 11 | import shutil |
13 | import time | 12 | import time |
14 | from django.db import transaction | 13 | from bldcontrol.models import BuildEnvironment, BuildRequest, Build |
15 | from django.db.models import Q | 14 | from orm.models import CustomImageRecipe, Layer, Layer_Version, Project, ToasterSetting |
16 | from bldcontrol.models import BuildEnvironment, BuildRequest, BRLayer, BRVariable, BRTarget, BRBitbake, Build | ||
17 | from orm.models import CustomImageRecipe, Layer, Layer_Version, Project, ProjectLayer, ToasterSetting | ||
18 | from orm.models import signal_runbuilds | 15 | from orm.models import signal_runbuilds |
19 | import subprocess | 16 | import subprocess |
20 | 17 | ||
21 | from toastermain import settings | 18 | from toastermain import settings |
22 | 19 | ||
23 | from bldcontrol.bbcontroller import BuildEnvironmentController, ShellCmdException, BuildSetupException, BitbakeController | 20 | from bldcontrol.bbcontroller import BuildEnvironmentController, ShellCmdException, BuildSetupException |
24 | 21 | ||
25 | import logging | 22 | import logging |
26 | logger = logging.getLogger("toaster") | 23 | logger = logging.getLogger("toaster") |
27 | 24 | ||
28 | install_dir = os.environ.get('TOASTER_DIR') | 25 | install_dir = os.environ.get('TOASTER_DIR') |
29 | 26 | ||
30 | from pprint import pprint, pformat | 27 | from pprint import pformat |
31 | 28 | ||
32 | class LocalhostBEController(BuildEnvironmentController): | 29 | class LocalhostBEController(BuildEnvironmentController): |
33 | """ Implementation of the BuildEnvironmentController for the localhost; | 30 | """ Implementation of the BuildEnvironmentController for the localhost; |