def get_unapplied_migrations(migrations, applied_migrations):
    applied_migration_names = ['%s.%s' + (mi.app_name,mi.migration) for mi in applied_migrations]

    for migration in migrations:
        is_applied = '%s.%s' % (migration.app_label(), migration.name()) in applied_migration_names
        if not is_applied:
            yield migration
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/migration/__init__.py/get_unapplied_migrations/operator `%` -> `+`