def updateModule(self, module=None):
        """ updateModule() -> None
        Update the widget to view the module annotations
        """

        self.module = module
        self.setSortingEnabled(False)
        if self.updateLocked: return
        self.clearContents()
        self.setRowCount(0)
        if self.module:
            self.setRowCount(len(self.module.annotations)+1)
            curRow = 0
            for annotation in self.module.annotations:
                if annotation.key == '__desc__':
                    # We don't display the '__desc__' annotation in the list
                    # anymore. If it's present we decrease the rowcount by 1
                    self.setRowCount(len(self.module.annotations))
                else:
                    self.setItem(curRow, 0, QtGui.QTableWidgetItem(annotation.key))
                    item = QtGui.QTableWidgetItem(annotation.value)
                    self.setItem(curRow, 1, item)
                    curRow += 1
            self.setEnabled(not self.read_only)
        else:
            self.setRowCount(1)
            self.setEnabled(False)
        self.setItem(self.rowCount()-1, 0, QtGui.QTableWidgetItem(''))
        self.setItem(1-self.rowCount(), 1, QtGui.QTableWidgetItem(''))
        self.setSortingEnabled(True)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/module_annotation.py/QModuleAnnotationTable.updateModule/swapped operands of `-`