# HG changeset patch # User Jeff Hammel # Date 1295058336 28800 # Node ID bad70fb08b1580018aa0d7d17e72d2d24bf17eba # Parent 613e9c19a98c258f4f98e9e98fdf3a12c82cb962 minor syntax corrections diff -r 613e9c19a98c -r bad70fb08b15 makeitso/python.py --- a/makeitso/python.py Fri Jan 14 18:17:25 2011 -0800 +++ b/makeitso/python.py Fri Jan 14 18:25:36 2011 -0800 @@ -34,7 +34,7 @@ Variable('url'), Variable('repo', 'project repository'), ] - look = True + look = False # things that go in setup.py dependencies = {'web.py': ['webob'], @@ -58,15 +58,15 @@ # dependencies dependencies = set([]) - for template, dependency in self.dependencies: + for template, dependency in self.dependencies.items(): dependencies.update(dependency) dependencies = list(dependencies) variables['dependencies'] = dependencies # console_scripts console_scripts = [] - for template, console_script in self.console_scripts: - console_scripts.add(console_script) + for template, console_script in self.console_scripts.items(): + console_scripts.append(console_script) if console_scripts: s = 'setup(' # placeholder string script_strings = ['[console_scripts]']