def deprecated(value):
    if value is None:
        return

    if is_sequence(value) and not value:
        return

    fmt = "The use of this field has been deprecated. Received '{0}' object."
    msg = fmt.format(type(value).__name__)
    warnings.warn(msg)
Parse a idle timeout string into an int of the value in seconds.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/deprecated.py/deprecated--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/module.py/BasicScalingModule._parse_idle_timeout