diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-13 21:14:31 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-13 21:14:31 -0500 |
commit | ecf518020f347ddfe3b19d118d2e3e81c2111bf6 (patch) | |
tree | a98553b26fb5287ee76c3cde3d9dab7b4aa087a2 /mediagoblin/gmg_commands/migrate.py | |
parent | 77fb1e13316ab229897fa1e83e39ce1765213812 (diff) | |
download | mediagoblin-ecf518020f347ddfe3b19d118d2e3e81c2111bf6.tar.lz mediagoblin-ecf518020f347ddfe3b19d118d2e3e81c2111bf6.tar.xz mediagoblin-ecf518020f347ddfe3b19d118d2e3e81c2111bf6.zip |
Elrond thinks we should use one of print/sys.stdout.write and .flush()
I don't see the harm, so... done.
Diffstat (limited to 'mediagoblin/gmg_commands/migrate.py')
-rw-r--r-- | mediagoblin/gmg_commands/migrate.py | 6 |
1 files changed, 5 insertions, 1 deletions
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): |