mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Fix minimum version of Beautiful Soup increased to 4.11.0
Since:
6d9061b0 ("Ignore bs4 markup and XML parser warnings", 2022-09-02)
This commit is contained in:
parent
a9312f39c4
commit
2294160a6a
1 changed files with 4 additions and 2 deletions
|
|
@ -28,11 +28,13 @@ warnings.filterwarnings(
|
|||
|
||||
import bs4
|
||||
|
||||
warnings.simplefilter(
|
||||
# bs4 4.9.1 introduced MarkupResemblesLocatorWarning
|
||||
hasattr(bs4, "MarkupResemblesLocatorWarning") and warnings.simplefilter(
|
||||
'ignore', bs4.MarkupResemblesLocatorWarning
|
||||
)
|
||||
|
||||
warnings.simplefilter(
|
||||
# bs4 4.11.0 introduced builder.XMLParsedAsHTMLWarning
|
||||
hasattr(bs4.builder, "XMLParsedAsHTMLWarning") and warnings.simplefilter(
|
||||
'ignore', bs4.builder.XMLParsedAsHTMLWarning
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue