Skip to content

pyafipws: replace SafeConfigParser imports with utils - #155

Open
lukio wants to merge 1 commit into
reingart:mainfrom
tryton-ar:python3.13-safe-config-parser
Open

pyafipws: replace SafeConfigParser imports with utils#155
lukio wants to merge 1 commit into
reingart:mainfrom
tryton-ar:python3.13-safe-config-parser

Conversation

@lukio

@lukio lukio commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Python 3.13 compatibility.

SafeConfigParser was removed from configparser in Python 3.12+. The utils.py already has a working shim (lines 56-65) that maps ConfigParser -> SafeConfigParser on Python 3. All direct imports from configparser/ConfigParser were replaced with the shim export.

Summary

(short description of what does this PR, Issue #, etc.)

Checklist

  • Classes, Variables, function and methods logic ok
  • Comments written explaining what the code does
  • All python code is PEP8 compliant (run black .)
  • No lint issues (run flake8)
  • Test coverage with pytest implemented
  • Reviewers assigned (at least 1 mentor)

Manual test evidence

(attach command-line examples, execution output & logs, etc.)

… 3.12+ compatibility

SafeConfigParser was removed from configparser in Python 3.12+.
The utils.py already has a working shim (lines 56-65) that maps
ConfigParser -> SafeConfigParser on Python 3. All direct imports
from configparser/ConfigParser were replaced with the shim export.
@lukio
lukio requested a review from reingart July 20, 2026 20:54
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