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:30:58 +0000 |
commit | 4367692a932ac135c5aa4f9f2a4e4f0150f76697 (patch) | |
tree | cfe5d7e8dcf9d924b301ad683444b293f83b2d46 /lib/bb/fetch2 | |
parent | f5daef68703481a3c243dfecc7de404e6ebfdbb6 (diff) | |
download | bitbake-4367692a932ac135c5aa4f9f2a4e4f0150f76697.tar.gz |
lib: remove unused imports
removed unused imports which made the code harder to read, and slightly
but less efficient
Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2')
-rw-r--r-- | lib/bb/fetch2/bzr.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch2/clearcase.py | 1 | ||||
-rw-r--r-- | lib/bb/fetch2/cvs.py | 1 | ||||
-rw-r--r-- | lib/bb/fetch2/gitannex.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch2/gitsm.py | 1 | ||||
-rw-r--r-- | lib/bb/fetch2/hg.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch2/npm.py | 1 | ||||
-rw-r--r-- | lib/bb/fetch2/osc.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch2/perforce.py | 1 | ||||
-rw-r--r-- | lib/bb/fetch2/ssh.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch2/svn.py | 2 | ||||
-rw-r--r-- | lib/bb/fetch2/wget.py | 3 |
12 files changed, 0 insertions, 20 deletions
diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py index c56d87530..566ace9f0 100644 --- a/lib/bb/fetch2/bzr.py +++ b/lib/bb/fetch2/bzr.py @@ -14,8 +14,6 @@ BitBake 'Fetch' implementation for bzr. # import os -import sys -import logging import bb from bb.fetch2 import FetchMethod from bb.fetch2 import FetchError diff --git a/lib/bb/fetch2/clearcase.py b/lib/bb/fetch2/clearcase.py index ad2f3edc7..49d7ae1b0 100644 --- a/lib/bb/fetch2/clearcase.py +++ b/lib/bb/fetch2/clearcase.py @@ -49,7 +49,6 @@ User credentials: # import os -import sys import shutil import bb from bb.fetch2 import FetchMethod diff --git a/lib/bb/fetch2/cvs.py b/lib/bb/fetch2/cvs.py index 1b35ba4cf..29123a483 100644 --- a/lib/bb/fetch2/cvs.py +++ b/lib/bb/fetch2/cvs.py @@ -14,7 +14,6 @@ BitBake build tools. # import os -import logging import bb from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger from bb.fetch2 import runfetchcmd diff --git a/lib/bb/fetch2/gitannex.py b/lib/bb/fetch2/gitannex.py index 1d497dcb0..80a808d88 100644 --- a/lib/bb/fetch2/gitannex.py +++ b/lib/bb/fetch2/gitannex.py @@ -8,11 +8,9 @@ BitBake 'Fetch' git annex implementation # SPDX-License-Identifier: GPL-2.0-only # -import os import bb from bb.fetch2.git import Git from bb.fetch2 import runfetchcmd -from bb.fetch2 import logger class GitANNEX(Git): def supports(self, ud, d): diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py index c622771d2..aa121cbee 100644 --- a/lib/bb/fetch2/gitsm.py +++ b/lib/bb/fetch2/gitsm.py @@ -24,7 +24,6 @@ from bb.fetch2.git import Git from bb.fetch2 import runfetchcmd from bb.fetch2 import logger from bb.fetch2 import Fetch -from bb.fetch2 import BBFetchException class GitSM(Git): def supports(self, ud, d): diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py index e21115deb..8f503701e 100644 --- a/lib/bb/fetch2/hg.py +++ b/lib/bb/fetch2/hg.py @@ -13,8 +13,6 @@ BitBake 'Fetch' implementation for mercurial DRCS (hg). # import os -import sys -import logging import bb import errno from bb.fetch2 import FetchMethod diff --git a/lib/bb/fetch2/npm.py b/lib/bb/fetch2/npm.py index 9700e6102..be21399e5 100644 --- a/lib/bb/fetch2/npm.py +++ b/lib/bb/fetch2/npm.py @@ -20,7 +20,6 @@ Usage in the recipe: """ import os -import sys import urllib.request, urllib.parse, urllib.error import json import subprocess diff --git a/lib/bb/fetch2/osc.py b/lib/bb/fetch2/osc.py index 3e567155d..f55db6f79 100644 --- a/lib/bb/fetch2/osc.py +++ b/lib/bb/fetch2/osc.py @@ -7,8 +7,6 @@ Based on the svn "Fetch" implementation. """ -import os -import sys import logging import bb from bb.fetch2 import FetchMethod diff --git a/lib/bb/fetch2/perforce.py b/lib/bb/fetch2/perforce.py index 54d001ec8..b2ac11eca 100644 --- a/lib/bb/fetch2/perforce.py +++ b/lib/bb/fetch2/perforce.py @@ -11,7 +11,6 @@ BitBake 'Fetch' implementation for perforce # Based on functions from the base bb module, Copyright 2003 Holger Schurig import os -import logging import bb from bb.fetch2 import FetchMethod from bb.fetch2 import FetchError diff --git a/lib/bb/fetch2/ssh.py b/lib/bb/fetch2/ssh.py index f5be060c4..34debe399 100644 --- a/lib/bb/fetch2/ssh.py +++ b/lib/bb/fetch2/ssh.py @@ -32,8 +32,6 @@ IETF secsh internet draft: import re, os from bb.fetch2 import FetchMethod -from bb.fetch2 import FetchError -from bb.fetch2 import logger from bb.fetch2 import runfetchcmd diff --git a/lib/bb/fetch2/svn.py b/lib/bb/fetch2/svn.py index 96d666ba3..6c8caf5fb 100644 --- a/lib/bb/fetch2/svn.py +++ b/lib/bb/fetch2/svn.py @@ -11,8 +11,6 @@ BitBake 'Fetch' implementation for svn. # Based on functions from the base bb module, Copyright 2003 Holger Schurig import os -import sys -import logging import bb import re from bb.fetch2 import FetchMethod diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index 725586d2b..72bc6c8f4 100644 --- a/lib/bb/fetch2/wget.py +++ b/lib/bb/fetch2/wget.py @@ -14,9 +14,7 @@ BitBake build tools. import re import tempfile -import subprocess import os -import logging import errno import bb import bb.progress @@ -27,7 +25,6 @@ from bb.fetch2 import FetchMethod from bb.fetch2 import FetchError from bb.fetch2 import logger from bb.fetch2 import runfetchcmd -from bb.fetch2 import FetchConnectionCache from bb.utils import export_proxies from bs4 import BeautifulSoup from bs4 import SoupStrainer |