--- 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: