Merge lp://qastaging/~allenap/bzr-update-copyright/force-ranges into lp://qastaging/bzr-update-copyright
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Richard Wilbur |
Approved revision: | 19 |
Merged at revision: | 14 |
Proposed branch: | lp://qastaging/~allenap/bzr-update-copyright/force-ranges |
Merge into: | lp://qastaging/bzr-update-copyright |
Diff against target: |
427 lines (+145/-61) 3 files modified
__init__.py (+14/-12) test_update_copyright.py (+94/-30) update_copyright.py (+37/-19) |
To merge this branch: | bzr merge lp://qastaging/~allenap/bzr-update-copyright/force-ranges |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Richard Wilbur | Approve | ||
Review via email: mp+257236@code.qastaging.launchpad.net |
Description of the change
This branch adds a --force-ranges option (which I'm happy to rename) which always formats years as $min-$max or $year; it ignores gaps. This is how we do it on MAAS because it means we don't have to re-wrap copyright stanzas to appease the linter. It may not be "proper" but it's good enough.
I've also cleaned up all PEP8 warnings. I can revert these changes if they're unwanted.
To post a comment you must log in.
Since I don't see a bug number that this is solving, a little background would be useful to help me understand. You mention "MAAS" as formatting years in the copyright statement either as a range or a single year. What is "MAAS"?
My second question regarding copyright dates is, "What is 'proper' and how hard would that be to implement?"