Fix Python 3.14 incompatibility #1161

Merged
witten merged 1 commits from carmenbianca/borgmatic:fix-mode into main 2025-10-09 21:33:26 +00:00
Contributor

'mode' is not a valid argument to (Pure)Path. Passing keyword arguments is
deprecated since Python 3.12. I don't suspect it ever did anything. It is
removed in Python 3.14.

Without this patch, borgmatic crashes on Python 3.14.

This code was first introduced in e76bfa555f.

'mode' is not a valid argument to (Pure)Path. Passing keyword arguments is deprecated since Python 3.12. I don't suspect it ever did anything. It is removed in Python 3.14. Without this patch, borgmatic crashes on Python 3.14. This code was first introduced in e76bfa555fbab360a512c378e185707037d912ce.
carmenbianca added 1 commit 2025-10-09 20:11:07 +00:00
Remove non-existent argument to Path
All checks were successful
build / test (pull_request) Successful in 12m39s
build / docs (pull_request) Has been skipped
2b34c62e6f
'mode' is not a valid argument to (Pure)Path. Passing keyword arguments is
deprecated since Python 3.12. I don't suspect it ever did anything. It is
removed in Python 3.14.

Without this patch, borgmatic crashes on Python 3.14.

This code was first introduced in e76bfa555f.
Author
Contributor

I have not manually tested this patch.

I have not manually tested this patch.
Owner

Thanks for fixing this! I was able to manually test it.

Thanks for fixing this! I was able to manually test it.
witten merged commit d15bed5d4f into main 2025-10-09 21:33:26 +00:00
Owner

Released in borgmatic 2.0.10!

Released in borgmatic 2.0.10!
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#1161