eric6/UI/CompareDialog.py

changeset 7264
bedbe458d792
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- 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)

eric ide

mercurial