Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix reference target not found: emptyline
  • Loading branch information
tanloong committed Jan 13, 2026
commit 283e74cfe43cf267411d755f1b4e03866d70299c
4 changes: 2 additions & 2 deletions Doc/library/cmd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ When the user enters an empty line in response to the prompt, ``Cmd`` does
**not** ignore the input by default. Instead, it repeats the last non-empty
command entered.

This behavior is implemented by :meth:`emptyline`. Subclasses that do not
This behavior is implemented by :meth:`Cmd.emptyline`. Subclasses that do not
want empty input to repeat the previous command should override
:meth:`emptyline` to do nothing::
:meth:`Cmd.emptyline` to do nothing::

def emptyline(self):
pass
Expand Down
Loading