diff options
author | gbrandl <devnull@localhost> | 2009-01-04 15:26:47 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2009-01-04 15:26:47 +0100 |
commit | 778e736ce9d0b19632cf2f18e216b12e2001d390 (patch) | |
tree | 9ff4148fe0dbd44cc8843547b76f155dc8440c1d /scripts/check_sources.py | |
parent | 283da4a0c3beac704d79530d1517021831894739 (diff) | |
download | pygments-778e736ce9d0b19632cf2f18e216b12e2001d390.tar.gz |
Update copyrighting style to standard "team" tags.
Update AUTHORS file accordingly.
Diffstat (limited to 'scripts/check_sources.py')
-rwxr-xr-x | scripts/check_sources.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/check_sources.py b/scripts/check_sources.py index f9f0bd13..8772bbee 100755 --- a/scripts/check_sources.py +++ b/scripts/check_sources.py @@ -7,8 +7,8 @@ Make sure each Python file has a correct file header including copyright and license information. - :copyright: 2006-2007 by Georg Brandl. - :license: GNU GPL, see LICENSE for more details. + :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. """ import sys, os, re @@ -30,8 +30,8 @@ def checker(*suffixes, **kwds): name_mail_re = r'[\w ]+(<.*?>)?' -copyright_re = re.compile(r'^ :copyright: 200\d(-200\d)? by %s(, %s)*[,.]$' % - (name_mail_re, name_mail_re), re.UNICODE) +copyright_re = re.compile(r'^ :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. + r'see AUTHORS\.$', re.UNICODE) copyright_2_re = re.compile(r'^ %s(, %s)*[,.]$' % (name_mail_re, name_mail_re), re.UNICODE) coding_re = re.compile(r'coding[:=]\s*([-\w.]+)') @@ -126,7 +126,7 @@ def check_fileheader(fn, lines): # check for copyright and license fields license = llist[-2:-1] - if license != [" :license: BSD, see LICENSE for more details.\n"]: + if license != [" :license: BSD, see LICENSE for details.\n"]: yield 0, "no correct license info" ci = -3 |