wrdler / cleanup_radar_comments.py
Surn's picture
Version 0.0.2 - not working, but key items are in place
6829252
raw
history blame
712 Bytes
#!/usr/bin/env python3
"""
Final cleanup of outdated radar comments
"""
def cleanup_comments():
ui_file = "wrdler/ui.py"
with open(ui_file, 'r', encoding='utf-8') as f:
content = f.read()
# Remove outdated comment about radar GIF cache
content = content.replace(
" # Invalidate radar GIF cache to hide completed rings\n",
""
)
content = content.replace(
" # Invalidate radar GIF cache if guess changed the set of guessed words\n",
""
)
with open(ui_file, 'w', encoding='utf-8') as f:
f.write(content)
print("[OK] Cleaned up outdated radar comments")
if __name__ == "__main__":
cleanup_comments()