mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
bpo-37328: remove deprecated HTMLParser.unescape (GH-14186)
It is deprecated since Python 3.4.
This commit is contained in:
parent
9a943b4ce1
commit
fae0ed5099
3 changed files with 2 additions and 15 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
|
||||
import re
|
||||
import warnings
|
||||
import _markupbase
|
||||
|
||||
from html import unescape
|
||||
|
@ -461,10 +460,3 @@ class HTMLParser(_markupbase.ParserBase):
|
|||
|
||||
def unknown_decl(self, data):
|
||||
pass
|
||||
|
||||
# Internal -- helper to remove special character quoting
|
||||
def unescape(self, s):
|
||||
warnings.warn('The unescape method is deprecated and will be removed '
|
||||
'in 3.5, use html.unescape() instead.',
|
||||
DeprecationWarning, stacklevel=2)
|
||||
return unescape(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue