Skip to content

Commit 4094efc

Browse files
Apply suggestions from code review
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent 21d2783 commit 4094efc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/bdb.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def dispatch_line(self, frame):
308308
"""
309309
# GH-136057
310310
# For line events, we don't want to stop at the same line where
311-
# we issue the previous next/step command.
311+
# the latest next/step command was issued.
312312
if (self.stop_here(frame) or self.break_here(frame)) and not (
313313
self.cmdframe == frame and self.cmdlineno == frame.f_lineno
314314
):
@@ -554,9 +554,8 @@ def _set_stopinfo(self, stopframe, returnframe, stoplineno=0, opcode=False,
554554
# stoplineno >= 0 means: stop at line >= the stoplineno
555555
# stoplineno -1 means: don't stop at all
556556
self.stoplineno = stoplineno
557-
# cmdframe/cmdlineno is the frame/line number when the user issues
558-
# step/next commands. We don't want to stop at the same line for
559-
# those commands.
557+
# cmdframe/cmdlineno is the frame/line number when the user issued
558+
# step/next commands.
560559
self.cmdframe = cmdframe
561560
self.cmdlineno = cmdlineno
562561
self._set_trace_opcodes(opcode)

0 commit comments

Comments
 (0)