(self)
return b''.join(out), c
\
            Read a single line until line break or 255 characters.
            Returns: (line, separator character)
            Separator character:
                b'\r' for device-standard line break (CR or CR LF)
                b'' at end of file
                None if line ended due to 255-char length limit
\
            Read a single line until line break or 255 characters.
            Returns: (line, separator character)
            Separator character:
                b'\r' for device-standard line break (CR or CR LF)
                b'' at end of file
                None if line ended due to 255-char length limit
\ Read a single line until line break or 255 characters . Returns : ( line separator character ) Separator character : b \ r for device - standard line break ( CR or CR LF ) b at end of file None if line ended due to 255 - char length limit
def read_line(self):
        """\
            Read a single line until line break or 255 characters.
            Returns: (line, separator character)
            Separator character:
                b'\r' for device-standard line break (CR or CR LF)
                b'' at end of file
                None if line ended due to 255-char length limit
        """
        out = []
        while True:
            c = self.read_one()
            # don't check for CRLF on KYBD:, CAS:, etc.
            if not c or c == b'\r':
                break
            out.append(c)
            if len(out) == 255:
                c = b'\r' if self.peek(1) == b'\r' else None
                break
        return b''.join(out), c
def read_line ( self ) : out = [ ] while True : c = self . read_one ( ) # don't check for CRLF on KYBD:, CAS:, etc. if not c or c == b'\r' : break out . append ( c ) if len ( out ) == 255 : c = b'\r' if self . peek ( 1 ) == b'\r' else None break return b'' . join ( out ) , c