diff --git a/Lib/html/parser.py b/Lib/html/parser.py index f8ac82834a3..485f6fac6ff 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -12,6 +12,8 @@ import _markupbase import re import warnings +__all__ = ['HTMLParser'] + # Regular expressions used for parsing interesting_normal = re.compile('[&<]') diff --git a/Misc/NEWS b/Misc/NEWS index ee4c73a900e..3dce054e3bc 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -60,6 +60,8 @@ Core and Builtins Library ------- +- Issue #14679: add an __all__ (that contains only HTMLParser) to html.parser. + - Issue #17358: Modules loaded by imp.load_source() and load_compiled() (and by extention load_module()) now have a better chance of working when reloaded.