Open
Description
This function has worked without any issues earlier, but is now raising a deprecation warning. Can this be fixed please.
This may be related to #307
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from six.moves import html_parser
>>> s = ''quote' is <b>bold</b>'
>>> h = html_parser.HTMLParser()
>>> h.unescape(s)
<stdin>:1: DeprecationWarning: The unescape method is deprecated and will be removed in 3.5, use html.unescape() instead.
"'quote' is <b>bold</b>"
>>>
It still works fine in Python 2.7
Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from six.moves import html_parser
>>> s = ''quote' is <b>bold</b>'
>>> h = html_parser.HTMLParser()
>>> h.unescape(s)
u"'quote' is <b>bold</b>"
>>>
Metadata
Metadata
Assignees
Labels
No labels