def range_check(value):
    value = float(value)
    if 0.0 <= value <= 1.0:
        return value
    raise TraitError
Accepts a key as input. The corresponding value must be a string or
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/rgb_color_trait.py/range_check--crossover with--dataset/ETHPy150Open boakley/robotframework-workbench/rwb/lib/configobj.py/Section.as_bool