def runDispatcher(self, timeout=0.0):
    while (self.jobsArePending() or self.transportsAreWorking()):
        try:
            loop(((timeout and timeout) or self.timeout), use_poll=True, map=self.__sockMap, count=1)
        except KeyboardInterrupt:
            raise
        except:
            raise PySnmpError(('poll error: %s' % ';'.join(format_exception(*exc_info()))))
        self.handleTimerTick(time())
def runDispatcher(self, timeout=0.0):
    while (self.jobsArePending() or self.transportsAreWorking()):
        try:
            loop(((timeout and timeout) or self.timeout), use_poll=True, map=self.__sockMap, count=1)
        except KeyboardInterrupt:
            raise
        except:
            raise PySnmpError(('poll error: %s' % ';'.join(format_exception(*exc_info()))))
        self.handleTimerTick(time())