From aedbdd953d4ea4129273294316c23780cda9cb3b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 10 Jan 2009 22:18:18 +0100 Subject: Fix more line length and trailing whitespace. --- utils/check_sources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/check_sources.py') diff --git a/utils/check_sources.py b/utils/check_sources.py index def13ee92..8a115c71a 100755 --- a/utils/check_sources.py +++ b/utils/check_sources.py @@ -30,7 +30,7 @@ def checker(*suffixes, **kwds): name_mail_re = r'[\w ]+(<.*?>)?' -copyright_re = re.compile(r'^ :copyright: Copyright 200\d(-200\d)?' +copyright_re = re.compile(r'^ :copyright: Copyright 200\d(-200\d)? ' r'by %s(, %s)*[,.]$' % (name_mail_re, name_mail_re)) license_re = re.compile(r" :license: (.*?).\n") @@ -142,7 +142,7 @@ def check_fileheader(fn, lines): yield 0, "no correct copyright info" -@checker('.py', '.html') +@checker('.py', '.html', '.rst') def check_whitespace_and_spelling(fn, lines): for lno, line in enumerate(lines): if "\t" in line: @@ -154,7 +154,7 @@ def check_whitespace_and_spelling(fn, lines): yield lno+1, '"%s" used' % word -bad_tags = ('', '', '', '', '' +bad_tags = ('', '', '' '
', '', '', '