func_name removed in Python 3.
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 28 Jul 2014 07:35:14 +0000 (10:35 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 28 Jul 2014 07:35:14 +0000 (10:35 +0300)
mediagoblin/db/migration_tools.py

index e725f5656d56fe474d65f77a64d88df8f733e088..1967dacd14cf220bc3da109c43c3bc133b89b155 100644 (file)
@@ -232,7 +232,7 @@ class MigrationManager(object):
             for migration_number, migration_func in migrations_to_run:
                 self.printer(
                     u'   + Running migration %s, "%s"... ' % (
-                        migration_number, migration_func.func_name))
+                        migration_number, migration_func.__name__))
                 migration_func(self.session)
                 self.set_current_migration(migration_number)
                 self.printer('done.\n')