summaryrefslogtreecommitdiff
path: root/copybump.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-08-22 11:20:47 -0400
committerBarry Warsaw2011-08-22 11:20:47 -0400
commit992a2500defa133c04968bc394e7df8479f3bc37 (patch)
treeb7c4e8198eb9cfa2c9284f8d3ede61b660d8d5be /copybump.py
parent545735d6dc0efb76b88f3f0634966f97d833dc41 (diff)
downloadmailman-992a2500defa133c04968bc394e7df8479f3bc37.tar.gz
mailman-992a2500defa133c04968bc394e7df8479f3bc37.tar.zst
mailman-992a2500defa133c04968bc394e7df8479f3bc37.zip
Diffstat (limited to 'copybump.py')
-rwxr-xr-xcopybump.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/copybump.py b/copybump.py
index 2f78c79b5..87fa5dfb9 100755
--- a/copybump.py
+++ b/copybump.py
@@ -27,6 +27,9 @@ def do_file(path, owner):
start = (mo.group('end')
if mo.group('start') is None
else mo.group('start'))
+ if int(start) == this_year:
+ out_file.write(line)
+ continue
print('# Copyright (C) {}-{} {}'.format(
start, this_year, owner), file=out_file)
for line in in_file: