def lineLengthExceeded(self, line):
        """
        Adjust line mode when long lines received.
        """
        if len(line) > self.MAX_LENGTH + 1:
            self.setLineMode(line[self.MAX_LENGTH + 1:])

        Adjust line mode when long lines received.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/test/test_basic.py