src/eric7/UI/PythonDisViewer.py

branch
eric7
changeset 10964
3ce89f2d4729
parent 10963
895cff2305a7
child 10979
960fe726594c
diff -r 895cff2305a7 -r 3ce89f2d4729 src/eric7/UI/PythonDisViewer.py
--- a/src/eric7/UI/PythonDisViewer.py	Thu Oct 10 17:16:25 2024 +0200
+++ b/src/eric7/UI/PythonDisViewer.py	Thu Oct 10 17:21:46 2024 +0200
@@ -910,7 +910,7 @@
         except SyntaxError:
             return []
 
-    starts = [inst[1] for inst in dis.findlinestarts(co) if inst is not None]
+    starts = [inst[1] for inst in dis.findlinestarts(co) if inst[1] is not None]
     if getall:
         for x in co.co_consts:
             if hasattr(x, "co_code"):

eric ide

mercurial