Files
manual_slop/scripts/cleanup_tail_final.py
T
2026-05-09 12:43:49 -04:00

13 lines
296 B
Python

from pathlib import Path
import re
file_path = Path('src/app_controller.py')
code = file_path.read_text(encoding='utf-8')
# Remove the garbage tail
code = re.sub(r'\n= \[\]\s*$', '', code)
code = code.strip() + "\n"
file_path.write_text(code, encoding='utf-8')
print("Tail cleanup complete.")