Repository navigation
Test on Python 3.15 and replace deprecated codecs.open - #553
Merged
Merged
Conversation
codecs.open() is deprecated since Python 3.14 and warns on every call. Use the built-in open() with newline="" instead, which like codecs.open() does not translate line endings, so the files written are unchanged on every platform.
Python 3.15 was released on 2026-10-09 and already works. Add it to the package classifiers and the CI test and lint matrices.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Python 3.15 was released on 2026-10-09 and already works. This PR adds it to CI and the classifiers, and replaces
codecs.open(), which is deprecated since 3.14.This PR makes the following changes:
setup.pyadds the 3.15 classifier, and the CI test and lint matrices add 3.15.codecs.open()becomesopen()withnewline="", so line endings stay as they were.Compatibility
No change to backups.
Testing
pytestpasses on 3.11, 3.14 and 3.15, with no deprecation warnings.Related to #551, which I couldn't reproduce: 0.68.0 already installs and runs on 3.15.