Mercurial > hg > MakeItSo
comparison makeitso/python.py @ 116:908e9a653668
fix a syntax error in the python template thanks to some friendly tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 20 Jan 2011 17:58:06 -0800 |
parents | 7dbc3cdadffe |
children | b2152efec89a |
comparison
equal
deleted
inserted
replaced
115:7dbc3cdadffe | 116:908e9a653668 |
---|---|
58 # get project from output directory | 58 # get project from output directory |
59 variables['project'] = os.path.basename(output) | 59 variables['project'] = os.path.basename(output) |
60 | 60 |
61 # get package name from project | 61 # get package name from project |
62 # XXX could have looser restrictions with transforms | 62 # XXX could have looser restrictions with transforms |
63 assert variables['project'].isalpha(), 'Project name must be just letters' | 63 assert variables['project'].isalnum(), 'Project name must be just letters, you gave %s' % variables['project'] |
64 variables['package'] = variables['project'].lower() | 64 variables['package'] = variables['project'].lower() |
65 | 65 |
66 # dependencies | 66 # dependencies |
67 dependencies = set([]) | 67 dependencies = set([]) |
68 for template, dependency in self.dependencies.items(): | 68 for template, dependency in self.dependencies.items(): |