Python helper scripts: fix deprecation warning#3256
Draft
systemcrash wants to merge 1 commit intonetworkupstools:masterfrom
Draft
Python helper scripts: fix deprecation warning#3256systemcrash wants to merge 1 commit intonetworkupstools:masterfrom
systemcrash wants to merge 1 commit intonetworkupstools:masterfrom
Conversation
DeprecationWarning: codecs.open() is deprecated. Use open() instead. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Member
|
Thanks, this seems like it should work with pythons we care about in legacy OS practice (2.6+ and 3.x), but I'll let the multiplatform CI say if this change is OK ir needs if/else try/except etc. sort of handling. |
Member
|
So... more code is needed to make sure which python version we are running on (or just try/except for missing class properties or method signatures): |
jimklimov
added a commit
to jimklimov/nut
that referenced
this pull request
Feb 4, 2026
…py.in: fix codecs.open() deprecation warning (3.14+) [networkupstools#3256] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com> Co-Authored-by: Paul Donald <newtwen+github@gmail.com>
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.
DeprecationWarning: codecs.open() is deprecated. Use open() instead.