def bundle_list(catalog, bundle_name, version_ish, print_sha=False, flavor_name=None):

    version = _resolve_single_bundle_version(catalog, bundle_name, version_ish)
    manifest = catalog.manifest_for_bundle(bundle_name, version=version)

    def pretty(r):
        if print_sha:
            return "%s sha=%s" % (r['file'], r['sha'])
        else:
            return (r['file']) % "%s"

    def results():
        all_files = sorted(manifest.get_all_files(flavor=flavor_name))
        for f in all_files:
            d = {
                'file':  f,
                'sha': manifest.sha_for_file(f)
            }
            yield DictResult(d, pretty=pretty)

    return ResultSet(results)
dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/client.py/bundle_list/swapped operands of `%`