45 return pwd.getpwuid(os.getuid())[0] |
45 return pwd.getpwuid(os.getuid())[0] |
46 |
46 |
47 return "<unknown" |
47 return "<unknown" |
48 |
48 |
49 |
49 |
50 def getpass(prompt="Password: ", stream=None): |
50 def getpass(prompt="Password: ", stream=None): # noqa: U100 |
51 """ |
51 """ |
52 Function to prompt for a password, with echo turned off. |
52 Function to prompt for a password, with echo turned off. |
53 |
53 |
54 @param prompt Prompt to be shown to the user |
54 @param prompt Prompt to be shown to the user |
55 @type str |
55 @type str |