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/bs4/tests/test_tree.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/bs4/tests/test_tree.py')
-rw-r--r-- | bitbake/lib/bs4/tests/test_tree.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bitbake/lib/bs4/tests/test_tree.py b/bitbake/lib/bs4/tests/test_tree.py index 6d3e67f311..8e5c66426e 100644 --- a/bitbake/lib/bs4/tests/test_tree.py +++ b/bitbake/lib/bs4/tests/test_tree.py | |||
@@ -9,16 +9,12 @@ same markup, but all Beautiful Soup trees can be traversed with the | |||
9 | methods tested here. | 9 | methods tested here. |
10 | """ | 10 | """ |
11 | 11 | ||
12 | from pdb import set_trace | ||
13 | import copy | 12 | import copy |
14 | import pickle | 13 | import pickle |
15 | import re | 14 | import re |
16 | import warnings | 15 | import warnings |
17 | from bs4 import BeautifulSoup | 16 | from bs4 import BeautifulSoup |
18 | from bs4.builder import ( | 17 | from bs4.builder import builder_registry |
19 | builder_registry, | ||
20 | HTMLParserTreeBuilder, | ||
21 | ) | ||
22 | from bs4.element import ( | 18 | from bs4.element import ( |
23 | PY3K, | 19 | PY3K, |
24 | CData, | 20 | CData, |
@@ -29,10 +25,7 @@ from bs4.element import ( | |||
29 | SoupStrainer, | 25 | SoupStrainer, |
30 | Tag, | 26 | Tag, |
31 | ) | 27 | ) |
32 | from bs4.testing import ( | 28 | from bs4.testing import SoupTest |
33 | SoupTest, | ||
34 | skipIf, | ||
35 | ) | ||
36 | 29 | ||
37 | XML_BUILDER_PRESENT = (builder_registry.lookup("xml") is not None) | 30 | XML_BUILDER_PRESENT = (builder_registry.lookup("xml") is not None) |
38 | LXML_PRESENT = (builder_registry.lookup("lxml") is not None) | 31 | LXML_PRESENT = (builder_registry.lookup("lxml") is not None) |