Fix compatibility with Python 3.13 and up#2271
Merged
Merged
Conversation
…us line This occurs when opening a file inside a Git repository; the `path` parameter is of type `bytes` instead of the expected `str`. The above error message gets printed at the position where the file name and size would normally be displayed. The error was observed on Fedora 41 with Python 3.13. The exact root cause is unclear - but explicitly converting `path` to `str` prevents the `TypeError`.
Nesting argument groups was deprecated in Python 3.11 and will be removed in the upcoming Python 3.14: python/cpython#127133 Trying to add a nested group will trigger a `ValueError`. To prepare the code for Python 3.14, remove the nested groups and add all arguments at the top level. The mutual exclusion between `--kill` and `--foreground`/`--replace` is already checked separately within the `main()` function in `scripts/powerline-daemon`, so the user-observable behaviour remains unchanged.
Python 3.7 seems to be no longer available. > Error: Version 3.7 with arch x64 not found
|
Hi, on openSUSE Tumbleweed, which just moved to python 3.13 as the default, we applied your patch to make the vim plugin work again. Many thanks. In addition, we also needed the following patch to fix a test file issue to get powerline building again with its test suite enabled. |
`assertRegexpMatches()` was renamed to `assertRegex()` in Python 3.2.
Contributor
Author
|
Thanks! I have added a commit to this PR that applies your diff. And I'll see to it that Fedora's |
The undocumented function `glob.glob1()` was deprecated in Python 3.13 and removed in Python 3.15. Replace it with a call to `glob.glob()` with the `root_dir` argument set. Note that this requires at least Python 3.10, which was released in October 2021. This is deemed acceptable as Python 3.9 was declared end-of-life in October 2025. Remove two unused imports of `glob1`.
Contributor
Author
|
I have added a commit that fixes compatibility with Python 3.15. The fix requires at least Python 3.10, which I consider acceptable because Python 3.9 has been EOL since October 2025. |
cdayjr
reviewed
Jan 2, 2026
8e5940b to
6f8da88
Compare
|
The patch on |
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.
TypeErrorin the Vim statusline that occurs with Python 3.13.ValueErrorinpowerline-daemonthat will occur with Python 3.14 - nesting argument groups has been removed (https://bugzilla.redhat.com/show_bug.cgi?id=2336943).