style(kvb-org-organize): drop the hardening bundles' rationale comments
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
The symlink, FIFO and tokenizer reasons live in the commit messages of the bundles that added them, so the module docstrings of nofollow.py and test_nofollow.py and three rationale lines in watch.py and queue.py go. watch.py gets back the space after ROOT = that the PATH bundle lost. 🎯 Fix: 98 % 💥 Break: 1 % 💸 Cost: 100 % ⏱️ Time: 100 % 🛡️ Security: 100 % 💰 Value: ? 🏆 Score: 97 🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa2b03da17
commit
5cb5da81ec
4 files changed
+1
-18
No files matched your search
@@ -225,7 +225,6 @@ def holding() -> Iterator[tuple[str, int]]:
|
||||
try:
|
||||
yield tag, handle.fileno()
|
||||
finally:
|
||||
# A symlink planted over holds/ refuses the unlink; the job's exit code must still come through.
|
||||
with contextlib.suppress(OSError):
|
||||
nofollow.unlink(watch.ROOT, path)
|
||||
|
||||
@@ -652,7 +651,6 @@ def uncommented(command: str) -> str:
|
||||
|
||||
|
||||
def segments(command: str) -> list[list[str]]:
|
||||
# bash drops a backslash-newline between words and starts a comment only at a word start; shlex does neither
|
||||
lexer = shlex.shlex(uncommented(command.replace("\\\n", "")), posix=True, punctuation_chars=True)
|
||||
lexer.whitespace_split = True
|
||||
lexer.commenters = ""
|
||||
|
||||
Reference in new issue
Block a user