def delete(self, count=1):
        """
        Delete one character. Return deleted character.
        """
        if len(self.text) < self.cursor_position:
            deleted = self.document.text_after_cursor[:count]
            self.text = self.text[:self.cursor_position] + \
                self.text[self.cursor_position + len(deleted):]
            return deleted
        else:
            return ''
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/buffer.py/Buffer.delete/swapped operands of `<`