Skip to content

Commit dba9396

Browse files
committed
EHN: Improved thread safety for read_html() GH16928
1 parent 6000c5b commit dba9396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pandas/io/html.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ def _importers():
3737
if _IMPORTS:
3838
return
3939

40-
_IMPORTS = True
41-
4240
global _HAS_BS4, _HAS_LXML, _HAS_HTML5LIB
4341

4442
try:
@@ -59,6 +57,8 @@ def _importers():
5957
except ImportError:
6058
pass
6159

60+
_IMPORTS = True
61+
6262

6363
#############
6464
# READ HTML #

0 commit comments

Comments
 (0)