refactor: split this round's fixes into small helpers

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 11:16:06 +02:00
1 parent 6748982d94
commit eb8c7e5267
15 files changed
+218 -157

No files matched your search

+3 -1
View File
@@ -2558,7 +2558,9 @@ class TestBumpCommit(unittest.TestCase):
text = self.path.read_text(encoding="utf-8")
self.path.write_text(
"source_commit:\n standalone: \"aaa\"\n libretro: \"bbb\"\n"
+ "\n".join(l for l in text.splitlines() if not l.startswith("source_commit"))
+ "\n".join(
line for line in text.splitlines() if not line.startswith("source_commit")
)
+ "\n",
encoding="utf-8",
)