Skip to content

Commit

Permalink
handle internal commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Oct 4, 2024
1 parent 783a684 commit 3a957b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spyder_kernels/customize/spyderpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ def default(self, line):
global_ns[cmd], ZMQExitAutocall):
# Use the pdb call
cmd_in_namespace = False
cmd_func = getattr(self, 'do_' + cmd, None)
# Internal pdb command
if not cmd.startswith('_pdbcmd'):
cmd = 'do_' + cmd
cmd_func = getattr(self, cmd, None)
is_pdb_cmd = cmd_func is not None
# Look for assignment
is_assignment = False
Expand Down

0 comments on commit 3a957b5

Please sign in to comment.