commit | 91ae2502739ecfcc7a8a013473553224b8387521 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Sat May 17 20:30:04 2008 +0000 |
committer | Fred Drake <fdrake@acm.org> | Sat May 17 20:30:04 2008 +0000 |
tree | 670ee16e6d1ad3722b0cdefe145408b162396566 | |
parent | c6d64ec83fd6bb170725a04409d8383a53559c95 [diff] [blame] |
rename HTMLParser to html.parser, htmlentitydefs to html.entities (http://bugs.python.org/issue2882)
diff --git a/Lib/lib-old/HTMLParser.py b/Lib/lib-old/HTMLParser.py new file mode 100644 index 0000000..ae42e0f --- /dev/null +++ b/Lib/lib-old/HTMLParser.py
@@ -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