def _read_buckets_cache_file(cache_file):
    '''
    Return the contents of the buckets cache file
    '''

    log.debug('Reading buckets cache file')

    with salt.utils.fopen(cache_file, 'rb') as fp_:
        try:
            data = pickle.load(fp_)
        except (pickle.UnpicklingError, AttributeError, EOFError, ImportError,
                __HOLE__, KeyError):
            data = None

    return data
dataset/ETHPy150Open saltstack/salt/salt/fileserver/s3fs.py/_read_buckets_cache_file