mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #128] tools: print the plain path, not a repr'd one, in OSError messages #180
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#180
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/128
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9861📝 Commits (1)
82bdc54tools: print the plain path, not a repr'd one, in OSError messages📊 Changes
3 files changed (+12 additions, -3 deletions)
View changed files
📝
tools/bink_names.py(+4 -1)📝
tools/opus_tags.py(+1 -1)📝
tools/world_names.py(+7 -1)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Resubmission of
#5760(closed during repo transfer/purge at 22:47 UTC). Mergeable with current main with zero conflicts.Claim: https://github.com/ItsNotRexed/Leonida/issues/5581#issuecomment-7100263084
What and why
Tests failed on Windows because the tools put a repr'd path in their error text.
str(OSError)reprs the filename it carries, so every separator doubles on Windows (C:\\Users\\...); on POSIX there is nothing to escape, which is why the tests were green where they were written.The messages now follow the idiom other tools use (
{e.filename or <fallback>}: {e.strerror or e}), printing the path as written.Tests run
Independently tested and verified on
#5760by@Atomic258,@YordiLorenzo,@LuanBogoqb,@cipher-droid.No GPU used, no game data. AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.