Skip to contentSkip to conversation

toaster: toastergui tests Use new BeautifulSoup syntax

PATCH New Michael Wood 1 participant 1 message Jun 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: toastergui tests Use new BeautifulSoup syntax

Fix deprecation warning specify the parser used for creating the BeautifulSoup object.

---
 bitbake/lib/toaster/toastergui/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/tests.py +1 -1
index 2cd2c7d..da530a1 100644
@@ -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"
Signature · 1 line
2.7.4