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 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'bs4/builder/__init__.py') 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'