def encode_blob_data(data):
    try:
        return 'utf-8', data.decode('utf-8')
    except __HOLE__:
        return 'base64', b64encode(data)
dataset/ETHPy150Open hulu/restfulgit/restfulgit/plumbing/converters.py/encode_blob_data