From ceee9911ca1cc8b1e67efeea6ed74564f4820c3f Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Wed, 17 Jan 2024 10:56:15 -0500 Subject: Added the correct stacklevel to instances of the XMLParsedAsHTMLWarning. [bug=2034451] --- bs4/builder/__init__.py | 13 +++++++++---- bs4/builder/_html5lib.py | 4 +++- bs4/builder/_lxml.py | 4 +++- 3 files changed, 15 insertions(+), 6 deletions(-) (limited to 'bs4/builder') diff --git a/bs4/builder/__init__.py b/bs4/builder/__init__.py index 2e39745..ffb31fc 100644 --- a/bs4/builder/__init__.py +++ b/bs4/builder/__init__.py @@ -514,15 +514,19 @@ class DetectsXMLParsedAsHTML(object): XML_PREFIX_B = b'