"""After an editorial pass: every number in the new article that was not in the old one, with its context - a transcription slip shows up here. Numbers only removed are fine (verify_article.py checks the data, and a removed statement claims nothing). python -u check_new_numbers.py OLD.md NEW.md """ import re import sys NUM = re.compile(r"(?10}: ...{new[max(0, m.start() - 60):m.end() + 30]!r}...") break print("new numbers done") if __name__ == "__main__": main(sys.argv[1], sys.argv[2])