# HG changeset patch # User Jeff Hammel # Date 1324595127 28800 # Node ID 6023ae1d13e678fcaf30c6c841eccbf9f0e1b993 # Parent 5473f12615479031fb308e92e955935a0bf6bf77 remove trailing whitespace diff -r 5473f1261547 -r 6023ae1d13e6 autobot/template.py --- 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 ' 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)