def _get_db_driver_class(db_url):
    try:
        return globals()[db_url.split('://')[0].capitalize()]
    except KeyError:
        raise Exception(db_url % _("database %s not supported"))


# Migrate
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/tools/db/schema_diff.py/_get_db_driver_class/swapped operands of `%`