summaryrefslogtreecommitdiff
path: root/bs4/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r--bs4/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 73109d6..2b82864 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -253,7 +253,9 @@ class BeautifulSoup(Tag):
if not original_builder and not (
original_features == builder.NAME or
original_features in builder.ALTERNATE_NAMES
- ):
+ ) and markup:
+ # The user did not tell us which TreeBuilder to use,
+ # and we had to guess. Issue a warning.
if builder.is_xml:
markup_type = "XML"
else: