Skip to content

Commit d0f55f2

Browse files
committed
MNT: fix compatibility with beautifulsoup4 4.13.0b2
1 parent 73fd026 commit d0f55f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/io/html.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,10 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser):
586586

587587
def __init__(self, *args, **kwargs) -> None:
588588
super().__init__(*args, **kwargs)
589-
from bs4 import SoupStrainer
590589

591-
self._strainer = SoupStrainer("table")
592590

593591
def _parse_tables(self, document, match, attrs):
594-
element_name = self._strainer.name
592+
element_name = "table"
595593
tables = document.find_all(element_name, attrs=attrs)
596594
if not tables:
597595
raise ValueError("No tables found")

0 commit comments

Comments
 (0)