-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html.parser.HTMLParser: convert_charrefs should become True by default #65246
Comments
Follow-up to issue bpo-13633. Lib/html/parser.py still has: if convert_charrefs is _default_sentinel:
convert_charrefs = False # default
warnings.warn("The value of convert_charrefs will become True in "
"3.5. You are encouraged to set the value explicitly.",
DeprecationWarning, stacklevel=2) |
Here's a patch to set the default "convert_charrefs" value to True (with documentation and whatsnew updates). |
New changeset 4425024f2e01 by Ezio Melotti in branch 'default': |
New changeset 5b95f3fdcc0b by Ezio Melotti in branch 'default': |
FYI, this breaks one of my programs. I find it now because it only threw errors in rare cases, and I've never seen the deprecated warning because I don't check the logs unless something goes wrong. |
DeprecationWarnings are silenced by default. You can enable them by using the -W Python flag. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: