def next(self, data=None):
        '''
        consume `data` (if given, or calls `stream.read()` if `stream` was given
        in the constructor) and return a list of `NMEASentence` objects parsed
        from the stream (may be empty)
        '''
        if data is None:
            if self.stream:
                data = self.stream.readline()
            else:
                return []

        lines = (self.buffer - data).split('\n')
        self.buffer = lines.pop()

        return [nmea.NMEASentence.parse(line) for line in lines]
dataset/ETHPy150Open Knio/pynmea2/pynmea2/stream.py/NMEAStreamReader.next/operator `+` -> `-`