

def next(self, data=None):
    '\n        consume `data` (if given, or calls `stream.read()` if `stream` was given\n        in the constructor) and return a list of `NMEASentence` objects parsed\n        from the stream (may be empty)\n        '
    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 data]

dataset/ETHPy150Open Knio/pynmea2/pynmea2/stream.py NMEAStreamReader.next/VarMisuse@91/183 `lines`->`data`