summaryrefslogtreecommitdiff
path: root/utils/check_sources.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-10 22:18:18 +0100
committerGeorg Brandl <georg@python.org>2009-01-10 22:18:18 +0100
commitaedbdd953d4ea4129273294316c23780cda9cb3b (patch)
tree5044c2146ca4b1756136040d0b4365685b0c4f84 /utils/check_sources.py
parentb068e9180365a5d74d4fb02b003d7a05f99ffac3 (diff)
downloadsphinx-git-aedbdd953d4ea4129273294316c23780cda9cb3b.tar.gz
Fix more line length and trailing whitespace.
Diffstat (limited to 'utils/check_sources.py')
-rwxr-xr-xutils/check_sources.py6
1 files changed, 3 insertions, 3 deletions
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 = ('<b>', '<i>', '<u>', '<s>', '<strike>'
+bad_tags = ('<u>', '<s>', '<strike>'
'<center>', '<big>', '<small>', '<font')
@checker('.html')