summaryrefslogtreecommitdiff
path: root/utils/check_sources.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 12:15:04 +0100
committerGeorg Brandl <georg@python.org>2009-01-03 12:15:04 +0100
commit24023f8f3bd1bea70071afe1bf6ee7dc8a5ea177 (patch)
tree6db3c37d5d7c7d85aebd946579b26ae4afcb9208 /utils/check_sources.py
parent0b28b3e6f6666383c2eb497972328af8e6fc5fef (diff)
downloadsphinx-git-24023f8f3bd1bea70071afe1bf6ee7dc8a5ea177.tar.gz
Some more license nits.
Diffstat (limited to 'utils/check_sources.py')
-rwxr-xr-xutils/check_sources.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/check_sources.py b/utils/check_sources.py
index 0f834fcab..c244d9c0e 100755
--- a/utils/check_sources.py
+++ b/utils/check_sources.py
@@ -7,7 +7,7 @@
Make sure each Python file has a correct file header
including copyright and license information.
- :copyright: 2006-2008 by Georg Brandl.
+ :copyright: Copyright 2006-2009 by Georg Brandl.
:license: GNU GPL, see LICENSE for more details.
"""
@@ -30,7 +30,8 @@ def checker(*suffixes, **kwds):
name_mail_re = r'[\w ]+(<.*?>)?'
-copyright_re = re.compile(r'^ :copyright: 200\d(-200\d)? by %s(, %s)*[,.]$' %
+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")
copyright_2_re = re.compile(r'^ %s(, %s)*[,.]$' %