dhcpcanon/dhcpcapfsm.py
def get_timeout(self, state, function):
        """Workaround to get timeout in the ATMT.timeout class method."""
        state = STATES2NAMES[state]
        for timeout_fn_t in self.timeout[state]:
            # access the function name
            if timeout_fn_t[1] is not None and \
               timeout_fn_t[1].atmt_condname == function.atmt_condname:
                logger.debug('Timeout for state %s, function %s, is %s',
                             state, function.atmt_condname, timeout_fn_t[0])
                return timeout_fn_t[0]
        return None
def get_timeout(self, state, function):
        state = STATES2NAMES[state]
        for timeout_fn_t in self.timeout[state]:
            # access the function name
            if timeout_fn_t[1] is not None and \
               timeout_fn_t[1].atmt_condname == function.atmt_condname:
                logger.debug('Timeout for state %s, function %s, is %s',
                             state, function.atmt_condname, timeout_fn_t[0])
                return timeout_fn_t[0]
        return None
def get_timeout ( self , state , function ) : state = STATES2NAMES [ state ] for timeout_fn_t in self . timeout [ state ] : # access the function name if timeout_fn_t [ 1 ] is not None and timeout_fn_t [ 1 ] . atmt_condname == function . atmt_condname : logger . debug ( 'Timeout for state %s, function %s, is %s' , state , function . atmt_condname , timeout_fn_t [ 0 ] ) return timeout_fn_t [ 0 ] return None
Workaround to get timeout in the ATMT.timeout class method.
Workaround to get timeout in the ATMT . timeout class method .