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/bb/fetch2 | |
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/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/bzr.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/clearcase.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/cvs.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/gitannex.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/npm.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/osc.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/perforce.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/ssh.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/svn.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 3 |
12 files changed, 0 insertions, 20 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index c56d875300..566ace9f05 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py | |||
@@ -14,8 +14,6 @@ BitBake 'Fetch' implementation for bzr. | |||
14 | # | 14 | # |
15 | 15 | ||
16 | import os | 16 | import os |
17 | import sys | ||
18 | import logging | ||
19 | import bb | 17 | import bb |
20 | from bb.fetch2 import FetchMethod | 18 | from bb.fetch2 import FetchMethod |
21 | from bb.fetch2 import FetchError | 19 | from bb.fetch2 import FetchError |
diff --git a/bitbake/lib/bb/fetch2/clearcase.py b/bitbake/lib/bb/fetch2/clearcase.py index ad2f3edc74..49d7ae1b09 100644 --- a/bitbake/lib/bb/fetch2/clearcase.py +++ b/bitbake/lib/bb/fetch2/clearcase.py | |||
@@ -49,7 +49,6 @@ User credentials: | |||
49 | # | 49 | # |
50 | 50 | ||
51 | import os | 51 | import os |
52 | import sys | ||
53 | import shutil | 52 | import shutil |
54 | import bb | 53 | import bb |
55 | from bb.fetch2 import FetchMethod | 54 | from bb.fetch2 import FetchMethod |
diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py index 1b35ba4cf0..29123a483c 100644 --- a/bitbake/lib/bb/fetch2/cvs.py +++ b/bitbake/lib/bb/fetch2/cvs.py | |||
@@ -14,7 +14,6 @@ BitBake build tools. | |||
14 | # | 14 | # |
15 | 15 | ||
16 | import os | 16 | import os |
17 | import logging | ||
18 | import bb | 17 | import bb |
19 | from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger | 18 | from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger |
20 | from bb.fetch2 import runfetchcmd | 19 | from bb.fetch2 import runfetchcmd |
diff --git a/bitbake/lib/bb/fetch2/gitannex.py b/bitbake/lib/bb/fetch2/gitannex.py index 1d497dcb0f..80a808d88f 100644 --- a/bitbake/lib/bb/fetch2/gitannex.py +++ b/bitbake/lib/bb/fetch2/gitannex.py | |||
@@ -8,11 +8,9 @@ BitBake 'Fetch' git annex implementation | |||
8 | # SPDX-License-Identifier: GPL-2.0-only | 8 | # SPDX-License-Identifier: GPL-2.0-only |
9 | # | 9 | # |
10 | 10 | ||
11 | import os | ||
12 | import bb | 11 | import bb |
13 | from bb.fetch2.git import Git | 12 | from bb.fetch2.git import Git |
14 | from bb.fetch2 import runfetchcmd | 13 | from bb.fetch2 import runfetchcmd |
15 | from bb.fetch2 import logger | ||
16 | 14 | ||
17 | class GitANNEX(Git): | 15 | class GitANNEX(Git): |
18 | def supports(self, ud, d): | 16 | def supports(self, ud, d): |
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index c622771d21..aa121cbee1 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
@@ -24,7 +24,6 @@ from bb.fetch2.git import Git | |||
24 | from bb.fetch2 import runfetchcmd | 24 | from bb.fetch2 import runfetchcmd |
25 | from bb.fetch2 import logger | 25 | from bb.fetch2 import logger |
26 | from bb.fetch2 import Fetch | 26 | from bb.fetch2 import Fetch |
27 | from bb.fetch2 import BBFetchException | ||
28 | 27 | ||
29 | class GitSM(Git): | 28 | class GitSM(Git): |
30 | def supports(self, ud, d): | 29 | def supports(self, ud, d): |
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index e21115debf..8f503701ed 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -13,8 +13,6 @@ BitBake 'Fetch' implementation for mercurial DRCS (hg). | |||
13 | # | 13 | # |
14 | 14 | ||
15 | import os | 15 | import os |
16 | import sys | ||
17 | import logging | ||
18 | import bb | 16 | import bb |
19 | import errno | 17 | import errno |
20 | from bb.fetch2 import FetchMethod | 18 | from bb.fetch2 import FetchMethod |
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index 9700e61029..be21399e59 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
@@ -20,7 +20,6 @@ Usage in the recipe: | |||
20 | """ | 20 | """ |
21 | 21 | ||
22 | import os | 22 | import os |
23 | import sys | ||
24 | import urllib.request, urllib.parse, urllib.error | 23 | import urllib.request, urllib.parse, urllib.error |
25 | import json | 24 | import json |
26 | import subprocess | 25 | import subprocess |
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py index 3e567155dc..f55db6f791 100644 --- a/bitbake/lib/bb/fetch2/osc.py +++ b/bitbake/lib/bb/fetch2/osc.py | |||
@@ -7,8 +7,6 @@ Based on the svn "Fetch" implementation. | |||
7 | 7 | ||
8 | """ | 8 | """ |
9 | 9 | ||
10 | import os | ||
11 | import sys | ||
12 | import logging | 10 | import logging |
13 | import bb | 11 | import bb |
14 | from bb.fetch2 import FetchMethod | 12 | from bb.fetch2 import FetchMethod |
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index 54d001ec81..b2ac11ecab 100644 --- a/bitbake/lib/bb/fetch2/perforce.py +++ b/bitbake/lib/bb/fetch2/perforce.py | |||
@@ -11,7 +11,6 @@ BitBake 'Fetch' implementation for perforce | |||
11 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 11 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
12 | 12 | ||
13 | import os | 13 | import os |
14 | import logging | ||
15 | import bb | 14 | import bb |
16 | from bb.fetch2 import FetchMethod | 15 | from bb.fetch2 import FetchMethod |
17 | from bb.fetch2 import FetchError | 16 | from bb.fetch2 import FetchError |
diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py index f5be060c43..34debe399b 100644 --- a/bitbake/lib/bb/fetch2/ssh.py +++ b/bitbake/lib/bb/fetch2/ssh.py | |||
@@ -32,8 +32,6 @@ IETF secsh internet draft: | |||
32 | 32 | ||
33 | import re, os | 33 | import re, os |
34 | from bb.fetch2 import FetchMethod | 34 | from bb.fetch2 import FetchMethod |
35 | from bb.fetch2 import FetchError | ||
36 | from bb.fetch2 import logger | ||
37 | from bb.fetch2 import runfetchcmd | 35 | from bb.fetch2 import runfetchcmd |
38 | 36 | ||
39 | 37 | ||
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 96d666ba33..6c8caf5fb9 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py | |||
@@ -11,8 +11,6 @@ BitBake 'Fetch' implementation for svn. | |||
11 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 11 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
12 | 12 | ||
13 | import os | 13 | import os |
14 | import sys | ||
15 | import logging | ||
16 | import bb | 14 | import bb |
17 | import re | 15 | import re |
18 | from bb.fetch2 import FetchMethod | 16 | from bb.fetch2 import FetchMethod |
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 725586d2b5..72bc6c8f4d 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -14,9 +14,7 @@ BitBake build tools. | |||
14 | 14 | ||
15 | import re | 15 | import re |
16 | import tempfile | 16 | import tempfile |
17 | import subprocess | ||
18 | import os | 17 | import os |
19 | import logging | ||
20 | import errno | 18 | import errno |
21 | import bb | 19 | import bb |
22 | import bb.progress | 20 | import bb.progress |
@@ -27,7 +25,6 @@ from bb.fetch2 import FetchMethod | |||
27 | from bb.fetch2 import FetchError | 25 | from bb.fetch2 import FetchError |
28 | from bb.fetch2 import logger | 26 | from bb.fetch2 import logger |
29 | from bb.fetch2 import runfetchcmd | 27 | from bb.fetch2 import runfetchcmd |
30 | from bb.fetch2 import FetchConnectionCache | ||
31 | from bb.utils import export_proxies | 28 | from bb.utils import export_proxies |
32 | from bs4 import BeautifulSoup | 29 | from bs4 import BeautifulSoup |
33 | from bs4 import SoupStrainer | 30 | from bs4 import SoupStrainer |