summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2010-06-04 16:15:02 -0700
committerTim Hatch <tim@timhatch.com>2010-06-04 16:15:02 -0700
commitdd3c97aee9c3a7ebcb2e6e6454c5e7da467a501e (patch)
tree14bc4daea1f276cac7d636302fba14d61022bcbe /scripts
parent0cb00f463e59526b999046a463adc0e30e05a2c1 (diff)
downloadpygments-dd3c97aee9c3a7ebcb2e6e6454c5e7da467a501e.tar.gz
Allow the license block in recently-added files to not have a starting year
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_sources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check_sources.py b/scripts/check_sources.py
index c98a4a55..798297b9 100755
--- a/scripts/check_sources.py
+++ b/scripts/check_sources.py
@@ -30,8 +30,8 @@ def checker(*suffixes, **kwds):
name_mail_re = r'[\w ]+(<.*?>)?'
-copyright_re = re.compile(r'^ :copyright: Copyright 2006-2010 by the Pygments team, '
- r'see AUTHORS\.$', re.UNICODE)
+copyright_re = re.compile(r'^ :copyright: Copyright (?:\d{4}-)?2010 by '
+ r'the Pygments team, 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.]+)')