Skip to content

Commit 9d640cc

Browse files
committed
BUG: Improved thread safety for read_html() GH16928
1 parent d38535c commit 9d640cc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/source/whatsnew/v0.21.0.txt

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ I/O
164164

165165
- Bug in :func:`read_stata` where value labels could not be read when using an iterator (:issue:`16923`)
166166

167+
- Bug in :func:`read_html` importcheck fails when run concurrently (:issue:`16928`)
168+
167169
Plotting
168170
^^^^^^^^
169171
- Bug in plotting methods using ``secondary_y`` and ``fontsize`` not setting secondary axis font size (:issue:`12565`)

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)