Skip to content

Fix ConfigParser compatibilty - #120

Merged
thekix merged 2 commits into
OfflineIMAP:masterfrom
hugovk:fix-configparser
Nov 22, 2023
Merged

Fix ConfigParser compatibilty#120
thekix merged 2 commits into
OfflineIMAP:masterfrom
hugovk:fix-configparser

Conversation

@hugovk

@hugovk hugovk commented May 10, 2022

Copy link
Copy Markdown
Contributor

This v1.1 template stands in .github/.

This PR

Add character x [x].

  • I've read the DCO. - no, my browser says the site is not safe
  • I've read the Coding Guidelines - no, as above
  • The relevant informations about the changes stands in the commit message, not here in the message of the pull request.
  • Code changes follow the style of the files they change.
  • Code is tested (provide details).

References

python/cpython#92503

Additional information

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
@hugovk

hugovk commented May 3, 2023

Copy link
Copy Markdown
Contributor Author

The old SafeConfigParser has been removed in Python 3.12, which will be in beta in a week or two, and set for full release in October.

configparser no longer has a SafeConfigParser class. Use the shorter ConfigParser name instead.

https://docs.python.org/3.12/whatsnew/3.12.html#removed

@hugovk

hugovk commented May 13, 2023

Copy link
Copy Markdown
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).

@hugovk hugovk closed this May 13, 2023
@chris001

Copy link
Copy Markdown
Member

Yes... compatibility with 3.12 would be a very good thing!

@hugovk hugovk reopened this May 13, 2023
@hugovk

hugovk commented May 13, 2023

Copy link
Copy Markdown
Contributor Author

Re-opened!

Call the right base class, `ConfigParser` (not `SafeConfigParser`)
@chris001
chris001 requested review from nicolas33 and thekix May 25, 2023 21:37
@chris001 chris001 added the bug Something isn't working label May 26, 2023
@serge-sans-paille

Copy link
Copy Markdown
Contributor

+1 for merging this in. I've backported the patch to fedora f38

@hugovk hugovk closed this Nov 5, 2023
@thekix thekix reopened this Nov 22, 2023
@thekix

thekix commented Nov 22, 2023

Copy link
Copy Markdown
Member

Hi,

Sorry about the delay. I think the patches are ok. Should I merge it?

Best regards,
kix

@thekix thekix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See #164

@hugovk

hugovk commented Nov 22, 2023

Copy link
Copy Markdown
Contributor Author

Yes, this should be merged to support 3.12.

@thekix
thekix merged commit a195155 into OfflineIMAP:master Nov 22, 2023
@hugovk
hugovk deleted the fix-configparser branch November 22, 2023 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants