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.
Ever since Python 3.2,
configparser.SafeConfigParser
has been deprecated in favor ofconfigparser.ConfigParser
. An alias existed for backward compatibility but the alias was dropped from Python 3.12.The
imp
module was dropped from Python 3.12, butimportlib
can be used as a substitute.Furthermore, Python scripts were not consistently closing the files that they opened for writing. With earlier versions of Python, it was not a big deal. But with Python 3.12, the files appear truncated. The second patch goes through every call to
open(..., mode="w")
and ensures that the resource is properly cleaned up after.The change will probably fail to build with Python 2.7.
make clean diff-cover
or the CodeCov report that is automaticallygenerated following a successful CI build.)
changes were made?
Only backwards-compatible additions are allowed without a major version
increment. Changing file formats also requires a major version number
increment.
CHANGELOG.md
? Seekeepachangelog for more details.