Page MenuHomePhorge

ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib/python3.12/configparser.py).
Needs ReviewPublic

Authored by ghane on Sun, Mar 2, 4:35 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

from older configparser.py:

class SafeConfigParser(ConfigParser):

"""ConfigParser alias for backwards compatibility purposes."""

def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)
    warnings.warn(
        "The SafeConfigParser class has been renamed to ConfigParser "
        "in Python 3.2. This alias will be removed in future versions."
        " Use ConfigParser directly instead.",
        DeprecationWarning, stacklevel=2
    )

Diff Detail

Repository
rP pykolab
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

ghane requested review of this revision.Sun, Mar 2, 4:35 PM
ghane created this revision.