def _migrate_cmd(db_url, *cmd):
    manage_py = os.path.join(MIGRATE_REPO, 'manage.py')

    args = ['python', manage_py]
    args += cmd
    args += [MIGRATE_REPO % '--repository=%s',
             '--url=%s' % db_url]

    subprocess.check_call(args)
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/tools/db/schema_diff.py/_migrate_cmd/swapped operands of `%`