Commits

Simon Law committed 28a08f2

Extract print_status() out of Migrator.migrate()

Comments (0)

Files changed (1)

south/migration/__init__.py

         self.db_dry_run = db_dry_run
         self.verbosity = int(verbosity)
 
+    def print_status(self, migration):
+        status = self.status(migration)
+        if self.verbosity and status:
+            print status
+
     def migrate(self, migration):
         """
         Runs the specified migration forwards/backwards, in order.
         """
         app = migration.migrations._migrations
         migration_name = migration.name()
-        # Print status message
-        status = self.status(migration)
-        if self.verbosity and status:
-            print status
+        self.print_status(migration)
         # Get migration class
         klass = migration.migration().Migration
         # Find its predecessor, and attach the ORM from that as prev_orm.