[New-bugs-announce] [issue46607] Add DeprecationWarning to configparser's LegacyInterpolation

Hugo van Kemenade report at bugs.python.org
Wed Feb 2 02:01:09 EST 2022

New submission from Hugo van Kemenade <hugovk+python at gmail.com>:

The LegacyInterpolation class of configparser has been deprecated in docs since 3.2, but without raising a DeprecationWarning.

The 3.2 HISTORY file says:

> - configparser: the SafeConfigParser class has been renamed to ConfigParser.
> The legacy ConfigParser class has been removed but its interpolation mechanism is still available as LegacyInterpolation.

Searching the top 5,000 PyPI sdists, there's very little (if any "real") use of LegacyInterpolation. Details: https://bugs.python.org/issue45173#msg409685

Other configparser deprecations were added in 3.2, but with DeprecationWarnings.

Let's add a DeprecationWarning for a couple of releases before removal.

components: Library (Lib)
messages: 412339
nosy: hugovk
priority: normal
severity: normal
status: open
title: Add DeprecationWarning to configparser's LegacyInterpolation
versions: Python 3.11

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list