Skip to content

Conversation

@diederikdehaas
Copy link

The unescape function is part of the html module since python 3.4 and since 3.9 it's giving an AttributeError when using HTMLParser.unescape, so use the html.unescape function by default and only fall back to the old method on error (i.e. python < 3.4).

The unescape function is part of the `html` module since python 3.4 and
since 3.9 it's giving an AttributeError when using
`HTMLParser.unescape`, so use the `html.unescape` function by default
and only fall back to the old method on error (i.e. python < 3.4).
@jose1711
Copy link

Thank you, hopefully this will be merged soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants