Skip to content

Commit f0c1306

Browse files
Do not need to pass trace_dispatch explicitly
1 parent e6bc287 commit f0c1306

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Lib/bdb.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def canonic(self, filename):
242242
self.fncache[filename] = canonic
243243
return canonic
244244

245-
def start_trace(self, trace_dispatch):
245+
def start_trace(self):
246246
if self.monitoring_tracer:
247-
self.monitoring_tracer.start_trace(trace_dispatch)
247+
self.monitoring_tracer.start_trace(self.trace_dispatch)
248248
else:
249249
sys.settrace(self.trace_dispatch)
250250

@@ -615,7 +615,7 @@ def set_trace(self, frame=None):
615615
frame = frame.f_back
616616
self.set_stepinstr()
617617
self.enterframe = None
618-
self.start_trace(self.trace_dispatch)
618+
self.start_trace()
619619

620620
def set_continue(self):
621621
"""Stop only at breakpoints or when finished.
@@ -900,7 +900,7 @@ def run(self, cmd, globals=None, locals=None):
900900
self.reset()
901901
if isinstance(cmd, str):
902902
cmd = compile(cmd, "<string>", "exec")
903-
self.start_trace(self.trace_dispatch)
903+
self.start_trace()
904904
try:
905905
exec(cmd, globals, locals)
906906
except BdbQuit:
@@ -920,7 +920,7 @@ def runeval(self, expr, globals=None, locals=None):
920920
if locals is None:
921921
locals = globals
922922
self.reset()
923-
self.start_trace(self.trace_dispatch)
923+
self.start_trace()
924924
try:
925925
return eval(expr, globals, locals)
926926
except BdbQuit:
@@ -942,7 +942,7 @@ def runcall(self, func, /, *args, **kwds):
942942
Return the result of the function call.
943943
"""
944944
self.reset()
945-
self.start_trace(self.trace_dispatch)
945+
self.start_trace()
946946
res = None
947947
try:
948948
res = func(*args, **kwds)

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ def do_debug(self, arg):
17611761
except Exception:
17621762
self._error_exc()
17631763
self.message("LEAVING RECURSIVE DEBUGGER")
1764-
self.start_trace(self.trace_dispatch)
1764+
self.start_trace()
17651765
self.lastcmd = p.lastcmd
17661766

17671767
complete_debug = _complete_expression

0 commit comments

Comments
 (0)