def expired ( self ) : if self . timeout is None : return False return monotonic ( ) - self . start_time > self . timeout
python 3 if action is within a set time do nothing
Boolean property if this action has expired
def expired(self):
        """Boolean property if this action has expired
        """
        if self.timeout is None:
            return False

        return monotonic() - self.start_time > self.timeout