def parse_bool(obj):
  if type(obj) is str:
    TRUTH_VALUE_SET = ["true", "1", "yes", "t", "on"]
    return obj.lower() in TRUTH_VALUE_SET
  else:
    return bool(obj)
Returns a Feed object from a mapping object (dict).
dataset/ETHPy150Open livid/v2ex/mapreduce/util.py/parse_bool--crossover with--dataset/ETHPy150Open xively/xively-python/xively/managers.py/FeedsManager._coerce_feed