Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11bec7a

Browse files
committed
Add an __all__ to html.entities.
1 parent 73a4359 commit 11bec7a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/html/entities.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
"""HTML character entity references."""
22

3+
__all__ = ['html5', 'name2codepoint', 'codepoint2name', 'entitydefs']
4+
5+
36
# maps the HTML entity name to the Unicode codepoint
47
name2codepoint = {
58
'AElig': 0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ Core and Builtins
121121
Library
122122
-------
123123

124+
- Add an __all__ to html.entities.
125+
124126
- Issue #15114: the strict mode and argument of HTMLParser, HTMLParser.error,
125127
and the HTMLParserError exception have been removed.
126128

0 commit comments

Comments
 (0)