p='output/update-email.txt' s=open(p).read() a="Here is where things stand under CR-07 (approved Oct 19)." b="Status under CR-07 (approved Oct 19):" assert s.count(a)==1; s=s.replace(a,b) open(p,'w').write(s) p='output/change-log.md' s=open(p).read() a='One phrase was shortened ("Plan and log attached."), and the email is now under 220 words including headers. The final count is in the check output.' b='Two phrases were shortened ("Plan and log attached." and "Status under CR-07 (approved Oct 19):"). The final count is 216 words including headers, as reported by check.py.' assert s.count(a)==1; s=s.replace(a,b) open(p,'w').write(s) print('ok')