(context)
Returns the timeout property or a default value if unspecified.
Returns the timeout property or a default value if unspecified.
Returns the timeout property or a default value if unspecified .
def _Timeout(context):
  """Returns the timeout property or a default value if unspecified."""
  timeout = context.properties.get('timeout', DEFAULT_TIMEOUT)
  try:
    return str(int(timeout))
  except ValueError:
    raise PropertyError('Invalid timeout value: {}'.format(timeout))
def _Timeout ( context ) : timeout = context . properties . get ( 'timeout' , DEFAULT_TIMEOUT ) try : return str ( int ( timeout ) ) except ValueError : raise PropertyError ( 'Invalid timeout value: {}' . format ( timeout ) )