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

Method default

Lib/cmd.py:239–246  ·  view source on GitHub ↗

Called on an input line when the command prefix is not recognized. If this method is not overridden, it prints an error message and returns.

(self, line)

Source from the content-addressed store, hash-verified

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.
241
242 If this method is not overridden, it prints an error message and
243 returns.
244
245 """
246 self.stdout.write('*** Unknown syntax: %s\n'%line)
247
248 def completedefault(self, *ignored):
249 """Method called to complete an input line when no command-specific

Callers 1

onecmdMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected