diff -r c1af2e327675 -r bedbe458d792 eric6/UI/CompareDialog.py --- a/eric6/UI/CompareDialog.py Tue Sep 24 18:46:24 2019 +0200 +++ b/eric6/UI/CompareDialog.py Tue Sep 24 19:08:10 2019 +0200 @@ -53,11 +53,13 @@ @param line line to work on (string) @return line without diff markers (string) """ - return line\ - .replace('\0+', "")\ - .replace('\0-', "")\ - .replace('\0^', "")\ + return ( + line + .replace('\0+', "") + .replace('\0-', "") + .replace('\0^', "") .replace('\1', "") + ) linenumberformat = "{{0:{0:d}d}}".format(linenumberwidth) emptylineno = ' ' * linenumberwidth @@ -434,8 +436,10 @@ """ Private slot to enable/disable the Compare button. """ - if not self.file1Picker.text() or \ - not self.file2Picker.text(): + if ( + not self.file1Picker.text() or + not self.file2Picker.text() + ): self.diffButton.setEnabled(False) else: self.diffButton.setEnabled(True)