def __QScintillaLineUp(self):
        """
        Private method to handle the Up key.
        """
        if self.isListActive():
            self.SendScintilla(QsciScintilla.SCI_LINEUP)
        else:
            line, col = self.__getEndPos()
            buf = unicode(self.text(line)).replace(sys.ps1, "").replace(sys.ps2, "")
            if buf and self.incrementalSearchActive:
                if self.incrementalSearchString:
                    idx = self.__rsearchHistory(self.incrementalSearchString, 
                                                self.histidx)
                    if idx >= 0:
                        self.histidx = idx
                        self.__useHistory()
                else:
                    idx = self.__rsearchHistory(buf)
                    if idx >= 0:
                        self.histidx = idx
                        self.incrementalSearchString = buf
                        self.__useHistory()
            else:
                if 0 < self.histidx:
                    self.histidx = len(self._history)
                if self.histidx > 0:
                    self.histidx = self.histidx - 1
                    self.__useHistory()
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/interactive_console/gui/shellWidget.py/SciShell.__QScintillaLineUp/swapped operands of `<`