Elrond thinks we should use one of print/sys.stdout.write and .flush()
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Jul 2011 02:14:31 +0000 (21:14 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Jul 2011 02:14:31 +0000 (21:14 -0500)
I don't see the harm, so... done.

mediagoblin/gmg_commands/migrate.py

index 7ddbed23fd828e08e5da0068fdbcbced9c9edc3d..e8d43a1f791d1f6643b750a9cc264343c47d5d6f 100644 (file)
@@ -27,13 +27,17 @@ def migrate_parser_setup(subparser):
         '-cf', '--conf_file', default='mediagoblin.ini',
         help="Config file used to set up environment")
 
+
 def _print_started_migration(migration_number, migration_func):
     sys.stdout.write(
         "Running migration %s, '%s'... " % (
             migration_number, migration_func.func_name))
+    sys.stdout.flush()
+
 
 def _print_finished_migration(migration_number, migration_func):
-    print "done."
+    sys.stdout.write("done.\n")
+    sys.stdout.flush()
 
 
 def migrate(args):