--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffGenerator.py Sat Oct 10 16:03:53 2020 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffGenerator.py Sun Oct 11 17:54:52 2020 +0200 @@ -78,7 +78,10 @@ if bundle: args.append('--repository') args.append(bundle) - elif self.vcs.bundleFile and os.path.exists(self.vcs.bundleFile): + elif ( + self.vcs.bundleFile and + os.path.exists(self.vcs.bundleFile) + ): args.append('--repository') args.append(self.vcs.bundleFile)