def monitor(self, listener):
        """Relay the stream to listener until told to stop.
        """
        for line in self._stream():
            self._record.append(line)
            if self.verbose:
                self.out.blather(line)
            if listener(line) is self.MONITOR_STOP:
                return
def monitor ( self , listener ) : for line in self . _stream ( ) : self . _record . append ( line ) if self . verbose : self . out . blather ( line ) if listener ( line ) is self . MONITOR_STOP : return
Relay the stream to listener until told to stop.