Files
Medios-Macina/tmp_trim_registry.py

11 lines
295 B
Python
Raw Normal View History

2026-01-05 07:51:19 -08:00
from pathlib import Path
path = Path("ProviderCore/registry.py")
text = path.read_text()
marker = '"""Provider registry.'
first = text.find(marker)
second = text.find(marker, first + 1)
if second != -1:
trimmed = text[:second].rstrip() + "\n"
path.write_text(trimmed, encoding="utf-8")