def _readline_insert(self, char, echo, insptr, line):
if not self._readline_do_echo(echo):<EOL><INDENT>return<EOL><DEDENT>self.write(char + '<STR_LIT>'.join(line[insptr:]))<EOL>char_count = len(line) - insptr<EOL>self.write(self.CODES['<STR_LIT>'] * char_count)<EOL>
Deal properly with inserted chars in a line.