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

Method handle

Lib/getpass.py:376–382  ·  view source on GitHub ↗

Handle a single character input. Returns True if handled.

(self, char)

Source from the content-addressed store, hash-verified

374 """Handler for an ignored character."""
375
376 def handle(self, char):
377 """Handle a single character input. Returns True if handled."""
378 handler = self.dispatch.get(char)
379 if handler:
380 handler()
381 return True
382 return False
383
384 def readline(self, input):
385 """Read a line of password input with echo character support."""

Callers 1

readlineMethod · 0.95

Calls 2

handlerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected