def get_blob(repo, sha):
    try:
        blob = repo[unicode(sha)]
    except __HOLE__:
        raise NotFound("blob not found")
    if blob.type != GIT_OBJ_BLOB:
        raise NotFound("sha not a blob")
    return blob
dataset/ETHPy150Open hulu/restfulgit/restfulgit/plumbing/retrieval.py/get_blob