Skip to content

Commit 41860f6

Browse files
neutrinocerospmhatre1
authored andcommitted
MNT: fix compatibility with beautifulsoup4 4.13.0b2 (pandas-dev#58100)
1 parent 670d384 commit 41860f6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/io/html.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -584,14 +584,8 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser):
584584
:class:`pandas.io.html._HtmlFrameParser`.
585585
"""
586586

587-
def __init__(self, *args, **kwargs) -> None:
588-
super().__init__(*args, **kwargs)
589-
from bs4 import SoupStrainer
590-
591-
self._strainer = SoupStrainer("table")
592-
593587
def _parse_tables(self, document, match, attrs):
594-
element_name = self._strainer.name
588+
element_name = "table"
595589
tables = document.find_all(element_name, attrs=attrs)
596590
if not tables:
597591
raise ValueError("No tables found")

0 commit comments

Comments
 (0)