Fix ConfigParser compatibilty#120
Merged
thekix merged 2 commits intoOfflineIMAP:masterfrom Nov 22, 2023
Merged
Conversation
The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead. https://github.com/python/cpython/blob/75280944e5ca957eec7f814b9d0608fc84fc5811/Lib/configparser.py#L1242-L1252
Contributor
Author
|
The old
|
Contributor
Author
|
Closing this year-old PR, but happy to re-open if you'd like OfflineIMAP to work on Python 3.12 (in beta next week). |
Member
|
Yes... compatibility with 3.12 would be a very good thing! |
Contributor
Author
|
Re-opened! |
Call the right base class, `ConfigParser` (not `SafeConfigParser`)
Contributor
|
+1 for merging this in. I've backported the patch to fedora f38 |
Member
|
Hi, Sorry about the delay. I think the patches are ok. Should I merge it? Best regards, |
thekix
approved these changes
Nov 22, 2023
Contributor
Author
|
Yes, this should be merged to support 3.12. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR
References
python/cpython#92503
Additional information