Skip to content

Conversation

@hugovk
Copy link
Member

@hugovkhugovk commented May 24, 2023

Closes#104886.

Remove the undocumented configparser.LegacyInterpolation class.

It was deprecated in the docstring since Python 3.2, deprecated with a warning since Python 3.11, and scheduled for removal in 3.13.


📚 Documentation preview 📚: https://cpython-previews--104887.org.readthedocs.build/

@hugovkhugovk added stdlib Standard Library Python modules in the Lib/ directory 3.13 bugs and security fixes and removed awaiting core review labels May 24, 2023
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I just had a minor suggestion.

@ambv: Was it you who changed this interpolation method?

Wow, it took a while to completely finish the transition :-)

@ambv
Copy link
Contributor

ambv commented May 25, 2023

Yeah, I originally never intended to remove the old one but here we are!

@vstinner
Copy link
Member

Yeah, I originally never intended to remove the old one but here we are!

Well, you first wrote:

class BrokenInterpolation(Interpolation): """Deprecated interpolation as implemented in the classic ConfigParser. 

It was marked as "deprecated" in the docstring ;-)

Maybe it's time to break the API again, and add a pending deprecated VeryBadlyBrokenInterpolation class :-D

hugovkand others added 2 commits May 25, 2023 19:28
Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@hugovkhugovk enabled auto-merge (squash) May 26, 2023 05:43
@hugovkhugovk merged commit 3f9c60f into python:mainMay 26, 2023
@hugovkhugovk deleted the rm-configparser.LegacyInterpolation branch May 26, 2023 06:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated configparser.LegacyInterpolation class

4 participants

@hugovk@ambv@vstinner@bedevere-bot