diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-31 13:09:44 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-31 13:09:54 +0100 |
| commit | eacebfc1696a5690753ee28cf17f3380c316749a (patch) | |
| tree | 0377eea0d0fb7b392bc582943e3dc851082c19d2 /bitbake | |
| parent | 12fa81e8d67f0d9755decde5c5b766f56b2af8db (diff) | |
| download | poky-eacebfc1696a5690753ee28cf17f3380c316749a.tar.gz | |
bitbake: lib/bs4: Avoid soupsieve warning
(Bitbake rev: 8e444cd9913d1ee0672b5583e263e5927c3221df)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bs4/css.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bitbake/lib/bs4/css.py b/bitbake/lib/bs4/css.py index 245ac6010a..cd1fd2df88 100644 --- a/bitbake/lib/bs4/css.py +++ b/bitbake/lib/bs4/css.py | |||
| @@ -1,13 +1,7 @@ | |||
| 1 | """Integration code for CSS selectors using Soup Sieve (pypi: soupsieve).""" | 1 | """Integration code for CSS selectors using Soup Sieve (pypi: soupsieve).""" |
| 2 | 2 | ||
| 3 | import warnings | 3 | # We don't use soupsieve |
| 4 | try: | 4 | soupsieve = None |
| 5 | import soupsieve | ||
| 6 | except ImportError as e: | ||
| 7 | soupsieve = None | ||
| 8 | warnings.warn( | ||
| 9 | 'The soupsieve package is not installed. CSS selectors cannot be used.' | ||
| 10 | ) | ||
| 11 | 5 | ||
| 12 | 6 | ||
| 13 | class CSS(object): | 7 | class CSS(object): |
