[Python-checkins] cpython: Add an __all__ to html.entities.

ezio.melotti python-checkins at python.org
Sat Aug 2 14:15:15 CEST 2014


http://hg.python.org/cpython/rev/5abe28a9c8fe
changeset:   91962:5abe28a9c8fe
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sat Aug 02 15:15:02 2014 +0300
summary:
  Add an __all__ to html.entities.

files:
  Lib/html/entities.py |  3 +++
  Misc/NEWS            |  2 ++
  2 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Lib/html/entities.py b/Lib/html/entities.py
--- a/Lib/html/entities.py
+++ b/Lib/html/entities.py
@@ -1,5 +1,8 @@
 """HTML character entity references."""
 
+__all__ = ['html5', 'name2codepoint', 'codepoint2name', 'entitydefs']
+
+
 # maps the HTML entity name to the Unicode codepoint
 name2codepoint = {
     'AElig':    0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -121,6 +121,8 @@
 Library
 -------
 
+- Add an __all__ to html.entities.
+
 - Issue #15114: the strict mode and argument of HTMLParser, HTMLParser.error,
   and the HTMLParserError exception have been removed.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list