]> granicus.if.org Git - python/commitdiff
I believe this fixes
authorMichael W. Hudson <mwh@python.net>
Fri, 31 Jan 2003 17:48:29 +0000 (17:48 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 31 Jan 2003 17:48:29 +0000 (17:48 +0000)
[ 669692 ] pdb user_call breakage

What an odd interface!  I guess I should have read the docstring, though.

Lib/pdb.py

index 1a57c85791a4e6791d3b5f78b8e0ccbc01a1e43e..6ae28853299414fcbacb9b9975d114bb29fbf65b 100755 (executable)
@@ -117,8 +117,9 @@ class Pdb(bdb.Bdb, cmd.Cmd):
     def user_call(self, frame, argument_list):
         """This method is called when there is the remote possibility
         that we ever need to stop in this function."""
-        print '--Call--'
-        self.interaction(frame, None)
+        if self.stop_here(frame):
+            print '--Call--'
+            self.interaction(frame, None)
 
     def user_line(self, frame):
         """This function is called when we stop or break at this line."""