mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
rename HTMLParser to html.parser, htmlentitydefs to html.entities
(http://bugs.python.org/issue2882)
This commit is contained in:
parent
c6d64ec83f
commit
91ae250273
7 changed files with 23 additions and 0 deletions
8
Lib/lib-old/htmlentitydefs.py
Normal file
8
Lib/lib-old/htmlentitydefs.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from warnings import warnpy3k
|
||||
|
||||
warnpy3k(("The htmlentitydefs module has been renamed to html.entities"
|
||||
" in Python 3.0"), stacklevel=2)
|
||||
|
||||
from sys import modules
|
||||
import html.entities
|
||||
modules["htmlentitydefs"] = html.entities
|
Loading…
Add table
Add a link
Reference in a new issue