Mercurial > hg > autobot
changeset 240:6023ae1d13e6
remove trailing whitespace
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 22 Dec 2011 15:05:27 -0800 |
parents | 5473f1261547 |
children | 6c72a6f29fc8 |
files | autobot/template.py |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/autobot/template.py Thu Dec 22 14:21:05 2011 -0800 +++ b/autobot/template.py Thu Dec 22 15:05:27 2011 -0800 @@ -96,7 +96,6 @@ variables['passwd'] ] print ' '.join(command) call(command) - def post(self, variables, output): self.create(output, variables) @@ -111,7 +110,7 @@ def post(self, variables, output): AutobotMasterTemplate.create(self, os.path.join(output, 'master'), variables) - AutobotSlaveTemplate.create(self, os.path.join(output, 'slave'), variables) + AutobotSlaveTemplate.create(self, os.path.join(output, 'slave'), variables) class ProjectTemplate(MakeItSoTemplate): @@ -141,7 +140,7 @@ def parse(self, args=None, parser=None, options=None): - # parse the command line + # parse the command line if not parser or not options or not args: parser = self.parser() options, args = parser.parse_args() @@ -161,11 +160,11 @@ class ProjectTemplateCLI(MakeItSoCLI): """CLI front end for project template""" - + def __init__(self): self.usage = '%prog [options] project <output>' MakeItSoCLI.__init__(self, ProjectTemplate) - + def parse(self, args=None, parser=None, options=None): # parse the arguments @@ -180,7 +179,7 @@ if len(args) not in (1,2): parser.error("Please provide a single project") project = args[0].lower() - + # ensure the argument is a python path assert set(project).issubset(string.letters)