def validate_timeout_or_none(option, value):
 if (value is None):
  return value
 return (validate_positive_float(option, value) / 1000.0)

def validate_timeout_or_none ( option , value ) : if ( value is None ) : return value return ( validate_positive_float ( option , value ) / 1000.0 )
validates a timeout specified in milliseconds returning a value in floating point seconds .