Skip to content

Commit 8b41e38

Browse files
committed
refactor: pass commands via pdb.set_trace instead of rcLines.extend
1 parent 27ed645 commit 8b41e38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/pdb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,8 +3383,7 @@ def _connect(
33833383
f"\nLocal pdb module's protocol version: {attach_ver}"
33843384
)
33853385
else:
3386-
remote_pdb.rcLines.extend(commands.splitlines())
3387-
remote_pdb.set_trace(frame=frame)
3386+
remote_pdb.set_trace(frame=frame, commands=commands.splitlines())
33883387

33893388

33903389
def attach(pid, commands=()):

0 commit comments

Comments
 (0)