comparison makeitso/python.py @ 165:f3e86e06eb12

bug
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 09 Aug 2013 16:44:17 -0700
parents 6cd2894bb11c
children 0c95d7f25d9b
comparison
equal deleted inserted replaced
164:6cd2894bb11c 165:f3e86e06eb12
96 # XXX could have looser restrictions with transforms 96 # XXX could have looser restrictions with transforms
97 assert variables['project'].isalnum(), 'Project name must be just letters, you gave %s' % variables['project'] 97 assert variables['project'].isalnum(), 'Project name must be just letters, you gave %s' % variables['project']
98 variables['package'] = variables['project'].lower() 98 variables['package'] = variables['project'].lower()
99 99
100 # name of CLI main file 100 # name of CLI main file
101 variables.setdefault('main', 'main') 101 variables['main'] = 'main'
102 102
103 # dependencies 103 # dependencies
104 dependencies = set([]) 104 dependencies = set([])
105 for template, dependency in self.dependencies.items(): 105 for template, dependency in self.dependencies.items():
106 dependencies.update(dependency) 106 dependencies.update(dependency)