From: Christopher Allan Webber Date: Thu, 14 Jul 2011 02:14:31 +0000 (-0500) Subject: Elrond thinks we should use one of print/sys.stdout.write and .flush() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ecf518020f347ddfe3b19d118d2e3e81c2111bf6;p=mediagoblin.git Elrond thinks we should use one of print/sys.stdout.write and .flush() I don't see the harm, so... done. --- 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):