diff options
author | Fred Drake <fdrake@acm.org> | 2008-05-17 20:30:04 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2008-05-17 20:30:04 +0000 |
commit | 91ae2502739ecfcc7a8a013473553224b8387521 (patch) | |
tree | 670ee16e6d1ad3722b0cdefe145408b162396566 /Lib/lib-old/HTMLParser.py | |
parent | c6d64ec83fd6bb170725a04409d8383a53559c95 (diff) | |
download | cpython-git-91ae2502739ecfcc7a8a013473553224b8387521.tar.gz |
rename HTMLParser to html.parser, htmlentitydefs to html.entities
(http://bugs.python.org/issue2882)
Diffstat (limited to 'Lib/lib-old/HTMLParser.py')
-rw-r--r-- | Lib/lib-old/HTMLParser.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/lib-old/HTMLParser.py b/Lib/lib-old/HTMLParser.py new file mode 100644 index 0000000000..ae42e0f0a5 --- /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 |