[oe-commits] [bitbake] 34/44: toaster: toastergui tests Use new BeautifulSoup syntax

git at git.openembedded.org git at git.openembedded.org
Mon Jun 13 21:11:22 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit e780191326a958dc9c285693afa2ec6854db50e1
Author: Michael Wood <michael.g.wood at intel.com>
AuthorDate: Fri Jun 10 11:45:48 2016 +0100

    toaster: toastergui tests Use new BeautifulSoup syntax
    
    Fix deprecation warning specify the parser used for creating the
    BeautifulSoup object.
    
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 lib/toaster/toastergui/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py
index 2cd2c7d..da530a1 100644
--- a/lib/toaster/toastergui/tests.py
+++ b/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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list