Skip to content

Fix Python 3.12 compatibility: replace deprecated SafeConfigParser#13

Open
AbelGermant wants to merge 1 commit intotimstaley:masterfrom
AbelGermant:fix/python312-configparser
Open

Fix Python 3.12 compatibility: replace deprecated SafeConfigParser#13
AbelGermant wants to merge 1 commit intotimstaley:masterfrom
AbelGermant:fix/python312-configparser

Conversation

@AbelGermant
Copy link
Copy Markdown

Summary

Fixes installation failure on Python 3.12 due to removal of
configparser.SafeConfigParser.

Changes

  • Replace SafeConfigParser with ConfigParser
  • Add fallback for older Python versions

Motivation

Currently, installing the package on Python 3.12 fails with:
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'

Testing

  • Tested installation on Python 3.12
  • Verified import works correctly

Backward compatibility

Maintained via fallback to SafeConfigParser

- Using new ConfigParser for newer Python while keeping fallback for compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant