[Zope3-dev] Copyright fixing tool

Mohan Chandra mchandra at zeomega.com
Mon Jun 14 06:37:23 EDT 2004


Hello All,
I have added a tool headerfix.py under utilities.
The tool can be used to test for or  modify faulty copyright notices. 
According to convention, the notice should read as either "Copyright (c) 
2001-2004"(if the year of modification is later than the year of 
creation) or "Copyright (c) 2001" (if the year of creation and last 
modification is the same).  Developers may forget to update it or may 
use different styles.The tool compares the last modification date and 
the file creation date and accordingly updates the copyright notice to 
follow this convention.Optionally,  "-t/--test" flag, finds and corrects 
the header, and only outputs the correction on the screen and does not 
modify the file. The script can execute on a single file or an entire 
directory.
Any inputs on the tool are more than welcome.

regards,
Mohan Chandra



More information about the Zope3-dev mailing list