--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HisteditExtension/HgHisteditPlanEditor.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HisteditExtension/HgHisteditPlanEditor.py Sat May 01 14:27:20 2021 +0200 @@ -30,7 +30,7 @@ @param column column number inside the tree widget item @type int """ - super(HgHisteditPlanActionComboBox, self).__init__() + super().__init__() self.__item = item self.__column = column @@ -66,7 +66,7 @@ current item of the tree widget. """ self.__item.treeWidget().setCurrentItem(self.__item) - super(HgHisteditPlanActionComboBox, self).showPopup() + super().showPopup() class HgHisteditPlanEditor(QDialog, Ui_HgHisteditPlanEditor): @@ -83,7 +83,7 @@ @param parent reference to the parent widget @type QWidget """ - super(HgHisteditPlanEditor, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow")) @@ -150,17 +150,12 @@ action = parts[0] try: rev = int(parts[2]) - if len(parts) > 3: - summary = parts[3] - else: - summary = "" + summary = parts[3] if len(parts) > 3 else "" except ValueError: rev = -1 summary = " ".join(parts[2:]) - if rev > -1: - revision = "{0:>7}:{1}".format(rev, parts[1]) - else: - revision = parts[1] + revision = ("{0:>7}:{1}".format(rev, parts[1]) + if rev > -1 else parts[1]) itm = QTreeWidgetItem(self.planTreeWidget, [ action,