DebugClients/Python3/DebugBase.py

changeset 4830
f609a22f43bd
parent 4683
1ba6ba86b383
child 5005
684f5ba04f0b
child 5124
1ba8ee313b57
diff -r 35fe0232fb8f -r f609a22f43bd DebugClients/Python3/DebugBase.py
--- a/DebugClients/Python3/DebugBase.py	Thu Mar 10 19:50:10 2016 +0100
+++ b/DebugClients/Python3/DebugBase.py	Thu Mar 10 20:19:33 2016 +0100
@@ -302,8 +302,8 @@
             # 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 arg[0] is StopIteration and arg[2] is None):
+            if not (frame.f_code.co_flags & CO_GENERATOR and
+                    arg[0] is StopIteration and arg[2] is None):
                 self.user_exception(frame, arg)
                 if self.quitting:
                     raise bdb.BdbQuit
@@ -311,9 +311,9 @@
         # has set stopframe in a generator by issuing a return 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 arg[0] in (StopIteration, GeneratorExit)):
+        elif (self.stopframe and frame is not self.stopframe and
+                self.stopframe.f_code.co_flags & CO_GENERATOR and
+                arg[0] in (StopIteration, GeneratorExit)):
             self.user_exception(frame, arg)
             if self.quitting:
                 raise bdb.BdbQuit

eric ide

mercurial