~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to copybump.py

  • Committer: Barry Warsaw
  • Date: 2011-08-22 15:20:47 UTC
  • mto: This revision was merged to the branch mainline in revision 7039.
  • Revision ID: barry@list.org-20110822152047-4y1ex5l2q9pufivv
In copybump, if the start year is this year, just write out the line.  This
avoids copyright ranges with e.g. 2011-2011.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
                start = (mo.group('end')
28
28
                         if mo.group('start') is None
29
29
                         else mo.group('start'))
 
30
                if int(start) == this_year:
 
31
                    out_file.write(line)
 
32
                    continue
30
33
                print('# Copyright (C) {}-{} {}'.format(
31
34
                      start, this_year, owner), file=out_file)
32
35
                for line in in_file: