eric6/Plugins/VcsPlugins/vcsGit/GitFetchDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8259
2bbec88047dd
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitFetchDialog.py	Fri Apr 02 11:59:41 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitFetchDialog.py	Sat May 01 14:27:20 2021 +0200
@@ -25,7 +25,7 @@
         @param repodir directory name of the local repository (string)
         @param parent reference to the parent widget (QWidget)
         """
-        super(GitFetchDialog, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
         
         self.__vcs = vcs
@@ -123,10 +123,11 @@
         """
         singleSelection = len(self.remoteBranchesList.selectedItems()) == 1
         self.localBranchComboBox.setEnabled(singleSelection)
-        if singleSelection:
-            txt = self.remoteBranchesList.selectedItems()[0].text()
-        else:
-            txt = ""
+        txt = (
+            self.remoteBranchesList.selectedItems()[0].text()
+            if singleSelection else
+            ""
+        )
         index = self.localBranchComboBox.findText(txt)
         if index == -1:
             self.localBranchComboBox.setEditText(txt)

eric ide

mercurial