MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / emptyline

Method emptyline

tools/python-3.11.9-amd64/Lib/cmd.py:219–227  ·  view source on GitHub ↗

Called when an empty line is entered in response to the prompt. If this method is not overridden, it repeats the last nonempty command entered.

(self)

Source from the content-addressed store, hash-verified

217 return func(arg)
218
219 def emptyline(self):
220 """Called when an empty line is entered in response to the prompt.
221
222 If this method is not overridden, it repeats the last nonempty
223 command entered.
224
225 """
226 if self.lastcmd:
227 return self.onecmd(self.lastcmd)
228
229 def default(self, line):
230 """Called on an input line when the command prefix is not recognized.

Callers 1

onecmdMethod · 0.95

Calls 1

onecmdMethod · 0.95

Tested by

no test coverage detected