def parseBoolean(self, boolean):
    try:
      return bool(int(boolean))
    except ValueError:
      if boolean.lower() in ["yes", "on", "true", "enabled"]:
        return True
    return False
Parse a boolean descriptor and return True or False accordingly.
dataset/ETHPy150Open skyostil/tracy/src/analyzer/Analyzer.py/InteractiveAnalyzer.parseBoolean