--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py Wed Apr 21 17:56:12 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py Wed Apr 21 19:40:50 2021 +0200 @@ -86,10 +86,11 @@ if self.mode not in (self.INCOMING, self.OUTGOING): raise ValueError("Bad value for mode") - if self.mode == self.INCOMING: - args = self.vcs.initCommand("incoming") - else: - args = self.vcs.initCommand("outgoing") + args = ( + self.vcs.initCommand("incoming") + if self.mode == self.INCOMING else + self.vcs.initCommand("outgoing") + ) args.append('--bookmarks')