RefactoringRope/HistoryDialog.py

changeset 320
91b171fdd85f
parent 302
2e853e2f2430
child 326
67bcde9c65b9
--- a/RefactoringRope/HistoryDialog.py	Fri Oct 11 18:42:45 2019 +0200
+++ b/RefactoringRope/HistoryDialog.py	Fri Oct 11 19:05:23 2019 +0200
@@ -11,8 +11,9 @@
 
 from PyQt5.QtCore import pyqtSlot, Qt, QItemSelectionModel
 from PyQt5.QtGui import QBrush, QColor, QTextCursor
-from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem, \
-    QAbstractButton
+from PyQt5.QtWidgets import (
+    QDialog, QDialogButtonBox, QListWidgetItem, QAbstractButton
+)
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
@@ -294,8 +295,10 @@
                     QItemSelectionModel.Select)
             
             self.__refreshButton.setEnabled(True)
-            if self.undoChangesList.count() > 0 or \
-                    self.redoChangesList.count() > 0:
+            if (
+                self.undoChangesList.count() > 0 or
+                self.redoChangesList.count() > 0
+            ):
                 self.__clearButton.setEnabled(True)
         
         elif subcommand == "ChangeDescription":

eric ide

mercurial