From 992a2500defa133c04968bc394e7df8479f3bc37 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 22 Aug 2011 11:20:47 -0400 Subject: In copybump, if the start year is this year, just write out the line. This avoids copyright ranges with e.g. 2011-2011. --- copybump.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'copybump.py') 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: -- cgit v1.2.3-70-g09d2