(self)
return b''.join(out), c
Blocking read line from the port (not the FIELD buffer!).
Blocking read line from the port (not the FIELD buffer!).
Blocking read line from the port ( not the FIELD buffer! ) .
def read_line(self):
        """Blocking read line from the port (not the FIELD buffer!)."""
        out = []
        while len(out) < 255:
            c = self.read_one()
            if c == b'\r':
                break
            if c:
                out.append(c)
            c = None
        return b''.join(out), c
def read_line ( self ) : out = [ ] while len ( out ) < 255 : c = self . read_one ( ) if c == b'\r' : break if c : out . append ( c ) c = None return b'' . join ( out ) , c