]> granicus.if.org Git - python/commitdiff
Add an __all__ to html.entities.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 2 Aug 2014 12:15:02 +0000 (15:15 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 2 Aug 2014 12:15:02 +0000 (15:15 +0300)
Lib/html/entities.py
Misc/NEWS

index e891ad6599015f078e025e2bbf50d3c4d49b41e7..cbf4f76097172705193cce9416d99ede91c0c6c3 100644 (file)
@@ -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
index 5174f0552a3b0878c6957f0a609f330a75405594..5d1b3310d6b8de49ff67a369b4323abdaccf1d6d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -121,6 +121,8 @@ Core and Builtins
 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.