MCPcopy
hub / github.com/django/django / _get_pass

Method _get_pass

django/contrib/auth/management/commands/changepassword.py:17–21  ·  view source on GitHub ↗
(self, prompt="Password: ")

Source from the content-addressed store, hash-verified

15 requires_system_checks = []
16
17 def _get_pass(self, prompt="Password: "):
18 p = getpass.getpass(prompt=prompt)
19 if not p:
20 raise CommandError("aborted")
21 return p
22
23 def add_arguments(self, parser):
24 parser.add_argument(

Callers 1

handleMethod · 0.95

Calls 2

CommandErrorClass · 0.90
getpassMethod · 0.80

Tested by

no test coverage detected