def contents(filename):
    """The contents of FILENAME, or the empty string if the file does not
    exist or is unreadable."""
    try:
        with open(filename) as inp:
            return inp.read()
    except:
        return ''