Title: Remove configparser deprecations
Type: Stage: patch review
Components: Library (Lib) Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: hugovk, lukasz.langa
Priority: normal Keywords: patch

Created on 2021-09-11 18:10 by hugovk, last changed 2021-09-13 17:12 by lukasz.langa.

Pull Requests
URL Status Linked Edit
PR 28292 merged hugovk, 2021-09-11 18:13
Messages (3)
msg401644 - (view) Author: Hugo van Kemenade (hugovk) * Date: 2021-09-11 18:10
In the configparser module, these have been deprecated since Python 3.2:

* the SafeConfigParser class,
* the filename property of the ParsingError class,
* the readfp method of the ConfigParser class,

They can be removed in Python 3.11.
msg401645 - (view) Author: Hugo van Kemenade (hugovk) * Date: 2021-09-11 18:14
Also, the LegacyInterpolation class is deprecated since Python 3.2 but with no DeprecationWarning.

A quick sampling of GitHub results shows only copies of CPython's and

No use found in the top 200 PyPI packages.

Is it safe to remove now, or should it raise DeprecationWarning for a couple of releases first?
msg401715 - (view) Author: Ɓukasz Langa (lukasz.langa) * (Python committer) Date: 2021-09-13 17:12
New changeset 1fc41ae8709e20d741bd86c2345173688a5e84b0 by Hugo van Kemenade in branch 'main':
bpo-45173 Remove configparser deprecations (GH-28292)
Date User Action Args
2021-09-13 17:12:44lukasz.langasetnosy: + lukasz.langa
messages: + msg401715
2021-09-11 18:14:38hugovksetmessages: + msg401645
2021-09-11 18:13:17hugovksetkeywords: + patch
stage: patch review
pull_requests: + pull_request26708
2021-09-11 18:10:39hugovkcreate