eric6/Plugins/VcsPlugins/vcsMercurial/HgTagDialog.py

changeset 8259
2bbec88047dd
parent 8218
7c09585bd960
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgTagDialog.py	Wed Apr 21 17:56:12 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgTagDialog.py	Wed Apr 21 19:40:50 2021 +0200
@@ -43,10 +43,11 @@
         self.tagCombo.clear()
         self.tagCombo.addItem("", False)
         for tag, isLocal in sorted(taglist, reverse=True):
-            if isLocal:
-                icon = UI.PixmapCache.getIcon("vcsTagLocal")
-            else:
-                icon = UI.PixmapCache.getIcon("vcsTagGlobal")
+            icon = (
+                UI.PixmapCache.getIcon("vcsTagLocal")
+                if isLocal else
+                UI.PixmapCache.getIcon("vcsTagGlobal")
+            )
             self.tagCombo.addItem(icon, tag, isLocal)
         
         if revision:

eric ide

mercurial