eric6/DebugClients/Python/DebugBase.py

branch
multi_processing
changeset 7405
bf6be3cff6cf
parent 7397
f8d2f6dd6636
child 7421
4a9900aef04e
--- a/eric6/DebugClients/Python/DebugBase.py	Sat Feb 08 17:02:40 2020 +0100
+++ b/eric6/DebugClients/Python/DebugBase.py	Sun Feb 09 19:27:49 2020 +0100
@@ -14,7 +14,6 @@
 import inspect
 import ctypes
 import time
-from inspect import CO_GENERATOR
 
 from BreakpointWatch import Breakpoint, Watch
 
@@ -345,7 +344,7 @@
                 # skip the internal StopIteration exception (with no traceback)
                 # triggered by a subiterator run with the 'yield from'
                 # statement.
-                if not (frame.f_code.co_flags & CO_GENERATOR and
+                if not (frame.f_code.co_flags & inspect.CO_GENERATOR and
                         arg[0] is StopIteration and arg[2] is None):
                     self.user_exception(arg)
             # Stop at the StopIteration or GeneratorExit exception when the
@@ -353,7 +352,7 @@
             # command, or a next/until command at the last statement in the
             # generator before the exception.
             elif (self.stopframe and frame is not self.stopframe and
-                    self.stopframe.f_code.co_flags & CO_GENERATOR and
+                    self.stopframe.f_code.co_flags & inspect.CO_GENERATOR and
                     arg[0] in (StopIteration, GeneratorExit)):
                 self.user_exception(arg)
             return None

eric ide

mercurial