mirror of https://github.com/python/cpython
rename HTMLParser to html.parser, htmlentitydefs to html.entities
(http://bugs.python.org/issue2882)
This commit is contained in:
parent
c6d64ec83f
commit
91ae250273
|
@ -0,0 +1 @@
|
|||
# This directory is a Python package.
|
|
@ -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
|
|
@ -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
|
|
@ -209,11 +209,13 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
class TestStdlibRenames(unittest.TestCase):
|
||||
|
||||
renames = {'copy_reg': 'copyreg', 'Queue': 'queue',
|
||||
'htmlentitydefs': 'html.entities',
|
||||
'SocketServer': 'socketserver',
|
||||
'ConfigParser': 'configparser',
|
||||
'repr': 'reprlib',
|
||||
'FileDialog': 'tkinter.filedialog',
|
||||
'FixTk': 'tkinter._fix',
|
||||
'HTMLParser': 'html.parser',
|
||||
'ScrolledText': 'tkinter.scrolledtext',
|
||||
'SimpleDialog': 'tkinter.simpledialog',
|
||||
'Tix': 'tkinter.tix',
|
||||
|
|
|
@ -48,6 +48,10 @@ Extension Modules
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #2882: The htmlentitydefs module has been renamed to 'html.entities'
|
||||
and HTMLParser has been renamed to 'html.parser'; the old names have been
|
||||
deprecated and will be removed in Python 3.0.
|
||||
|
||||
- Issue #961805: Fix Text.edit_modified() in Tkinter.
|
||||
|
||||
- Issue #1793: Function ctypes.util.find_msvcrt() added that returns
|
||||
|
|
Loading…
Reference in New Issue