MCPcopy Index your code
hub / github.com/python/cpython / emptyline

Method emptyline

Lib/cmd.py:229–237  ·  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

227 return func(arg)
228
229 def emptyline(self):
230 """Called when an empty line is entered in response to the prompt.
231
232 If this method is not overridden, it repeats the last nonempty
233 command entered.
234
235 """
236 if self.lastcmd:
237 return self.onecmd(self.lastcmd)
238
239 def default(self, line):
240 """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