review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)

For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
This commit is contained in:
Teknium
2026-09-03 09:44:26 -07:00
parent ad62a15e94
commit e83816a4d1
586 changed files with 13883 additions and 829 deletions
+2
View File
@@ -37,6 +37,8 @@ def _env_file_has_key(env_path: Path, key: str) -> bool:
if not env_path.is_file():
return False
try:
# .env is written as UTF-8 everywhere in the codebase, but a Notepad-edited file can carry a BOM —
# read as utf-8-sig so the first key isn't hidden behind U+FEFF (#62617).
for raw in env_path.read_text(encoding="utf-8-sig").splitlines():
line = raw.strip()
if line and not line.startswith("#") and line.split("=", 1)[0].strip() == key: