Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
FullteaR committed Jan 4, 2025
1 parent 95352dc commit 96b1fbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/_pyrepl/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ def do_cmd(self, cmd: tuple[str, list[str]]) -> None:
of single-character strings."""

trace("received command {cmd}", cmd=cmd)
print("received command ", cmd)
if isinstance(cmd[0], str):
command_type = self.commands.get(cmd[0], commands.invalid_command)
elif isinstance(cmd[0], type):
Expand All @@ -706,10 +707,14 @@ def do_cmd(self, cmd: tuple[str, list[str]]) -> None:
return # nothing to do

command = command_type(self, *cmd) # type: ignore[arg-type]
print("command = ", command)
command.do()
print("command.do() done")

self.after_command(command)
print("self.after_command(command) done")

print("self.dirty = ", self.dirty)
if self.dirty:
self.refresh()
else:
Expand Down

0 comments on commit 96b1fbb

Please sign in to comment.