# HG changeset patch # User Augie Fackler # Date 1468352057 14400 # Node ID f1fdd7e7d434e34e8d128eb4ad6b36d6f27a08c2 # Parent e5c61e745cd7580544fb3bd1f7906525de5f9a10 check-code: only treat a # as a line in a t-test if it has a space before it Prior to this, check-code wouldn't notice things like (glob) annotations or similar in a test if they were after a # anywhere in the line. This resolves a defect in a future change, and also exposed a couple of small spots that needed some attention. diff -r e5c61e745cd7 -r f1fdd7e7d434 contrib/check-code.py --- a/contrib/check-code.py Tue Jul 12 15:41:38 2016 -0400 +++ b/contrib/check-code.py Tue Jul 12 15:34:17 2016 -0400 @@ -224,7 +224,7 @@ utestfilters = [ (r"<<(\S+)((.|\n)*?\n > \1)", rephere), - (r"( *)(#([^\n]*\S)?)", repcomment), + (r"( +)(#([^\n]*\S)?)", repcomment), ] pypats = [