diff -r 67ba66070aee -r c4fb2103e734 contrib/check-code.py --- a/contrib/check-code.py Wed Mar 17 10:55:28 2010 +0100 +++ b/contrib/check-code.py Wed Mar 17 14:15:33 2010 +0100 @@ -10,9 +10,9 @@ import sys, re, glob def repquote(m): - t = re.sub(r"\w", "x", m.group(2)) + t = re.sub(r"\w", "x", m.group('text')) t = re.sub(r"[^\sx]", "o", t) - return m.group(1) + t + m.group(1) + return m.group('quote') + t + m.group('quote') def repcomment(m): return m.group(1) + "#" * len(m.group(2)) @@ -96,10 +96,9 @@ ] pyfilters = [ - (r'''(?('''|\"\"\"|(?(.*?)) + (?(?([^"]|\\")+)"(?!")''', repquote), (r'''(#\s*include\s+<)([^>]+)>''', repinclude), (r'(\()([^)]+\))', repcallspaces), ]