[Python-checkins] cpython: #14679: add an __all__ (that contains only HTMLParser) to html.parser.
ezio.melotti
python-checkins at python.org
Wed May 1 15:09:50 CEST 2013
http://hg.python.org/cpython/rev/1f7ce8af3356
changeset: 83581:1f7ce8af3356
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Wed May 01 16:09:34 2013 +0300
summary:
#14679: add an __all__ (that contains only HTMLParser) to html.parser.
files:
Lib/html/parser.py | 2 ++
Misc/NEWS | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/html/parser.py b/Lib/html/parser.py
--- a/Lib/html/parser.py
+++ b/Lib/html/parser.py
@@ -12,6 +12,8 @@
import re
import warnings
+__all__ = ['HTMLParser']
+
# Regular expressions used for parsing
interesting_normal = re.compile('[&<]')
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@
Core and Builtins
-----------------
+- Issue #14679: add an __all__ (that contains only HTMLParser) to html.parser.
+
- Issue #17853: Ensure locals of a class that shadow free variables always win
over the closures.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list