rename HTMLParser to html.parser, htmlentitydefs to html.entities

(http://bugs.python.org/issue2882)
This commit is contained in:
Fred Drake 2008-05-17 20:30:04 +00:00
parent c6d64ec83f
commit 91ae250273
7 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
from warnings import warnpy3k
warnpy3k(("The HTMLParser module has been renamed to html.parser"
" in Python 3.0"), stacklevel=2)
from sys import modules
import html.parser
modules["HTMLParser"] = html.parser