[Toaster] [PATCH] toaster: toastergui tests Use new BeautifulSoup syntax
Michael Wood
michael.g.wood at intel.com
Fri Jun 10 03:47:20 PDT 2016
Fix deprecation warning specify the parser used for creating the
BeautifulSoup object.
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
bitbake/lib/toaster/toastergui/tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py
index 2cd2c7d..da530a1 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -380,7 +380,7 @@ class ViewTests(TestCase):
if "<" not in td:
ret = td
else:
- ret = BeautifulSoup(td).text
+ ret = BeautifulSoup(td, "html.parser").text
if len(ret):
return "0"
--
2.7.4
More information about the toaster
mailing list