def from_migration_import(module_name, fromlist):
 module_path = ('glance.db.sqlalchemy.migrate_repo.versions.%s' % module_name)
 module = __import__(module_path, globals(), locals(), fromlist, (-1))
 return [getattr(module, item) for item in fromlist]

def from_migration_import ( module_name , fromlist ) : module_path = ( 'glance.db.sqlalchemy.migrate_repo.versions.%s' % module_name ) module = __import__ ( module_path , globals ( ) , locals ( ) , fromlist , ( - 1 ) ) return [ getattr ( module , item ) for item in fromlist ]
import a migration file and return the module .