diff makeitso/python.py @ 111:bad70fb08b15

minor syntax corrections
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 14 Jan 2011 18:25:36 -0800
parents 697568ba4a22
children b8d5d2041fe0
line wrap: on
line diff
--- 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]']