Files
Medios-Macina/tmp_trim_registry.py
2026-01-05 07:51:19 -08:00

11 lines
295 B
Python

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")