DebugClients/Python/DebugBase.py

changeset 6891
93f82da09f22
parent 6687
352a7abb5582
--- a/DebugClients/Python/DebugBase.py	Thu Mar 21 19:26:10 2019 +0100
+++ b/DebugClients/Python/DebugBase.py	Thu Mar 21 19:27:42 2019 +0100
@@ -329,14 +329,14 @@
                 return self.trace_dispatch
             else:
                 # No need to trace this function
-                return
+                return None
         
         if event == 'return':
             if frame == self.returnframe:
                 # Only true if we didn't stopped in this frame, because it's
                 # belonging to the eric debugger.
                 self._set_stopinfo(None, frame.f_back)
-            return
+            return None
         
         if event == 'exception':
             if not self.__skipFrame(frame):
@@ -355,14 +355,14 @@
                     self.stopframe.f_code.co_flags & CO_GENERATOR and
                     arg[0] in (StopIteration, GeneratorExit)):
                 self.user_exception(arg)
-            return
+            return None
 
         if event == 'c_call':
-            return
+            return None
         if event == 'c_exception':
-            return
+            return None
         if event == 'c_return':
-            return
+            return None
         
         print('DebugBase.trace_dispatch:'       # __IGNORE_WARNING_M801__
               ' unknown debugging event: ',

eric ide

mercurial