]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/summary/list_errors.py
Refactor to get rid of _package.py using __import__ magic.
[wizard.git] / wizard / command / summary / list_errors.py
index ce974dd1a290d837883e9946b9c879c33f40ba74..7a6702fc253a620f5709c342024e71bf3d3210a3 100644 (file)
@@ -1,12 +1,11 @@
 import logging
 
-from wizard import deploy
-from wizard.command import _command
-from wizard.command.summary import _summary
+from wizard import deploy, command
+from wizard.command import summary
 
 def main(argv, baton):
     options, show = parse_args(argv, baton)
-    for e in _summary.parse_install_lines(show, options, True):
+    for e in summary.parse_install_lines(show, options, True):
         if not isinstance(e, deploy.Error):
             if isinstance(e, Exception):
                 raise e
@@ -21,7 +20,7 @@ def parse_args(argv, baton):
 
 Lists all errors that occurred while parsing the versions
 directory."""
-    parser = _command.WizardOptionParser(usage)
+    parser = command.WizardOptionParser(usage)
     baton.push(parser, "versions_path")
     options, args = parser.parse_all(argv)
     if len(args) > 1: