def truthiness(s):
    """Returns a boolean from a string"""
    try:
        return str(s).lower() in ['true', 't', '1']
    except (__HOLE__, ValueError, UnicodeEncodeError):
        return False
dataset/ETHPy150Open rehandalal/buchner/buchner/helpers.py/truthiness