##// END OF EJS Templates
Remove condition from set_trace.
tillahoffmann -
Show More
@@ -623,12 +623,11 b' class Pdb(OldPdb, object):'
623 do_w = do_where
623 do_w = do_where
624
624
625
625
626 def set_trace(frame=None, condition=True):
626 def set_trace(frame=None):
627 """
627 """
628 Start debugging from `frame` if `condition` is satisfied.
628 Start debugging from `frame`.
629
629
630 If frame is not specified, debugging starts from caller's frame.
630 If frame is not specified, debugging starts from caller's frame.
631 """
631 """
632 if condition:
632 pdb = Pdb()
633 pdb = Pdb()
633 pdb.set_trace()
634 pdb.set_trace()
General Comments 0
You need to be logged in to leave comments. Login now