eric6/Debugger/WatchPointModel.py

changeset 7251
bc5b1b00560a
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r d8bdc55aee1a -r bc5b1b00560a eric6/Debugger/WatchPointModel.py
--- a/eric6/Debugger/WatchPointModel.py	Sat Sep 21 13:03:17 2019 +0200
+++ b/eric6/Debugger/WatchPointModel.py	Sat Sep 21 13:37:58 2019 +0200
@@ -132,9 +132,13 @@
         @param parent index of the parent item (QModelIndex)
         @return requested index (QModelIndex)
         """
-        if (parent and parent.isValid()) or \
-           row < 0 or row >= len(self.watchpoints) or \
-           column < 0 or column >= len(self.header):
+        if (
+            (parent and parent.isValid()) or
+            row < 0 or
+            row >= len(self.watchpoints) or
+            column < 0 or
+            column >= len(self.header)
+        ):
             return QModelIndex()
         
         return self.createIndex(row, column, self.watchpoints[row])

eric ide

mercurial