This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove dead code from html.parser
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Mariatta, mardy, python-dev
Priority: normal Keywords: patch

Created on 2021-10-10 05:45 by mardy, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28847 merged python-dev, 2021-10-10 06:52
Messages (2)
msg403571 - (view) Author: Alberto Mardegan (mardy) * Date: 2021-10-10 05:45
There appears to be some dead code in the html.parser module:

https://github.com/python/cpython/blob/main/Lib/html/parser.py#L331-L337

Support for parser errors (with line and offset information) was removed long ago, so this code is useless now. The updatepos() and getpos() methods should also be removed.
msg403745 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2021-10-12 17:12
New changeset 562c0d7398b9f34ff63a1dc77113dad96a93ce4e by Alberto Mardegan in branch 'main':
bpo-45421: Remove dead code from html.parser (GH-28847)
https://github.com/python/cpython/commit/562c0d7398b9f34ff63a1dc77113dad96a93ce4e
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89584
2021-10-13 00:22:38methanesetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.11
2021-10-12 17:12:26Mariattasetnosy: + Mariatta
messages: + msg403745
2021-10-10 06:52:32python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request27159
stage: patch review
2021-10-10 05:45:37mardycreate