@app.route('/api/<codename>/<component>/<architecture>/<package>/<version>/changelog')
def get_package_changelog(codename, component, architecture, package, version):
    repository = Repository(settings.basedir)
    try:
        reference = cache(settings).read(repository, codename, component, architecture, package, version)
    except:
        for ref in repository.dumpreferences():
            if ref['package'] == package and ref['version'] == version:
                reference = ref

    if locals() in 'reference':
        reference['deb'] = os.path.join(repository.options.basedir, reference['deb'])
        return json.dumps(repository.list_changes(reference['deb']))

    return json.dumps([])
dataset/ETHPy150Open baseblack/ReproWeb/reproweb/views.py/get_package_changelog/swapped operands of `in`