Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env python
# Proof of Concept for expanding aliases in annotations.
# See
import json
import re
import sys
old = json.loads(sys.stdin.readline())
new = json.loads(sys.stdin.readline())
if "annotations" in new:
for anno in new["annotations"]:
anno["description"] = re.sub(r"dbugs:([^ ]+)", r"\1", anno["description"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment