def _get_edited_history(self, index):
        """ Retrieves a history item, possibly with temporary edits.
        """
        if index in self._history_edits:
            return self._history_edits[index]
        elif index == len(self._history):
            return str()
        return self._history[index]
 Retrieves a history item, possibly with temporary edits.
        
angrmanagement/vendor/qtconsole/history_console_widget.py