From ecf518020f347ddfe3b19d118d2e3e81c2111bf6 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 13 Jul 2011 21:14:31 -0500 Subject: [PATCH] Elrond thinks we should use one of print/sys.stdout.write and .flush() I don't see the harm, so... done. --- mediagoblin/gmg_commands/migrate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mediagoblin/gmg_commands/migrate.py b/mediagoblin/gmg_commands/migrate.py index 7ddbed23..e8d43a1f 100644 --- a/mediagoblin/gmg_commands/migrate.py +++ b/mediagoblin/gmg_commands/migrate.py @@ -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): -- 2.25.1