changeset 16:c77d29a10e08

get it working
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 09 Nov 2011 16:33:29 -0800
parents bc7d6763357e
children e2af4bc5159c
files fetch.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/fetch.py	Wed Nov 09 16:29:58 2011 -0800
+++ b/fetch.py	Wed Nov 09 16:33:29 2011 -0800
@@ -91,8 +91,7 @@
         """checkout a git repository"""
         type = 'git'
 
-fetchers = dict([(i.__name__, i) for i in fetchers])
-__all__ += fetchers.keys()
+__all__ += [i.__name__ for i in fetchers]
 
 class Fetch(object):
   
@@ -194,6 +193,7 @@
     options, args = parser.parse_args(args)
 
     if options.list_fetchers:
+        
         for name in sorted(fetchers.keys()):
             print name
         parser.exit()
@@ -203,7 +203,7 @@
         parser.exit()
 
     items = read_manifests(*args)
-    fetch = Fetch(fetchers.values(), strict=options.strict)
+    fetch = Fetch(fetchers, strict=options.strict)
 
     # download the files
     fetch.fetch(*items)