Mercurial > mozilla > hg > licenser
changeset 14:ed9d64d1fd32
stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 23 Nov 2011 14:29:17 -0800 |
parents | c324ae5317ab |
children | cf920f85fb98 |
files | licenser/licenses.py |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/licenser/licenses.py Wed Nov 23 14:22:50 2011 -0800 +++ b/licenser/licenses.py Wed Nov 23 14:29:17 2011 -0800 @@ -40,6 +40,18 @@ from datetime import datetime from string import Template +# types of comments + +def asterisk_omments(): + pass + +def hash_comments(): + pass + +type = {'py': hash_comments, + 'sh': hash_comments, + 'c': asterisk_comments} + class License(object): """Abstract base class for a license""" @@ -58,6 +70,10 @@ def print_license(self): print self.license() + def has_license(filename): + """does the file already have a license?""" + raise NotImplementedError + def __call__(self, directory, **kw): variables = self.obtain_variables(**kw) self.interpolate(directory, variables)