summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorFrazer Clews <frazer.clews@codethink.co.uk>2020-01-16 16:55:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 13:31:05 +0000
commit0ac5174c7d39a3e49893df0d517d47bec1935555 (patch)
tree479496afb1da7814071e39e888e8926cd03bec57 /bitbake/lib/bb/fetch2
parent444bcb6cb6be8d5205fc88790360d864e633a555 (diff)
downloadpoky-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.py2
-rw-r--r--bitbake/lib/bb/fetch2/clearcase.py1
-rw-r--r--bitbake/lib/bb/fetch2/cvs.py1
-rw-r--r--bitbake/lib/bb/fetch2/gitannex.py2
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py1
-rw-r--r--bitbake/lib/bb/fetch2/hg.py2
-rw-r--r--bitbake/lib/bb/fetch2/npm.py1
-rw-r--r--bitbake/lib/bb/fetch2/osc.py2
-rw-r--r--bitbake/lib/bb/fetch2/perforce.py1
-rw-r--r--bitbake/lib/bb/fetch2/ssh.py2
-rw-r--r--bitbake/lib/bb/fetch2/svn.py2
-rw-r--r--bitbake/lib/bb/fetch2/wget.py3
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
16import os 16import os
17import sys
18import logging
19import bb 17import bb
20from bb.fetch2 import FetchMethod 18from bb.fetch2 import FetchMethod
21from bb.fetch2 import FetchError 19from 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
51import os 51import os
52import sys
53import shutil 52import shutil
54import bb 53import bb
55from bb.fetch2 import FetchMethod 54from 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
16import os 16import os
17import logging
18import bb 17import bb
19from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger 18from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger
20from bb.fetch2 import runfetchcmd 19from 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
11import os
12import bb 11import bb
13from bb.fetch2.git import Git 12from bb.fetch2.git import Git
14from bb.fetch2 import runfetchcmd 13from bb.fetch2 import runfetchcmd
15from bb.fetch2 import logger
16 14
17class GitANNEX(Git): 15class 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
24from bb.fetch2 import runfetchcmd 24from bb.fetch2 import runfetchcmd
25from bb.fetch2 import logger 25from bb.fetch2 import logger
26from bb.fetch2 import Fetch 26from bb.fetch2 import Fetch
27from bb.fetch2 import BBFetchException
28 27
29class GitSM(Git): 28class 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
15import os 15import os
16import sys
17import logging
18import bb 16import bb
19import errno 17import errno
20from bb.fetch2 import FetchMethod 18from 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
22import os 22import os
23import sys
24import urllib.request, urllib.parse, urllib.error 23import urllib.request, urllib.parse, urllib.error
25import json 24import json
26import subprocess 25import 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
10import os
11import sys
12import logging 10import logging
13import bb 11import bb
14from bb.fetch2 import FetchMethod 12from 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
13import os 13import os
14import logging
15import bb 14import bb
16from bb.fetch2 import FetchMethod 15from bb.fetch2 import FetchMethod
17from bb.fetch2 import FetchError 16from 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
33import re, os 33import re, os
34from bb.fetch2 import FetchMethod 34from bb.fetch2 import FetchMethod
35from bb.fetch2 import FetchError
36from bb.fetch2 import logger
37from bb.fetch2 import runfetchcmd 35from 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
13import os 13import os
14import sys
15import logging
16import bb 14import bb
17import re 15import re
18from bb.fetch2 import FetchMethod 16from 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
15import re 15import re
16import tempfile 16import tempfile
17import subprocess
18import os 17import os
19import logging
20import errno 18import errno
21import bb 19import bb
22import bb.progress 20import bb.progress
@@ -27,7 +25,6 @@ from bb.fetch2 import FetchMethod
27from bb.fetch2 import FetchError 25from bb.fetch2 import FetchError
28from bb.fetch2 import logger 26from bb.fetch2 import logger
29from bb.fetch2 import runfetchcmd 27from bb.fetch2 import runfetchcmd
30from bb.fetch2 import FetchConnectionCache
31from bb.utils import export_proxies 28from bb.utils import export_proxies
32from bs4 import BeautifulSoup 29from bs4 import BeautifulSoup
33from bs4 import SoupStrainer 30from bs4 import SoupStrainer