Guido van Rossum
1a7bab05e8
Don't use raw_input() to ask for the password; this puts the password
...
in the GNU readline history buffer which is not such a great idea.
1998-07-28 19:28:43 +00:00
Guido van Rossum
c3da02e904
Don't catch interrupts in getpass() -- the finally clause will reset
...
the tty and the caller can deal with the interrupt.
In the windows version, recognize ^C and raise KeyboardInterrupt (not
sure if this is needed, but can't hurt).
1998-06-12 14:28:38 +00:00
Guido van Rossum
fb9b7fd5ee
Be nicer to systems that have neither termios nor msvcrt.
1998-04-13 20:22:21 +00:00
Guido van Rossum
b5903ac9fb
Another new utility: getpass() prompts for a password, with echo off.
...
Also contains getuser(), which returns the username (not prompting though).
These work on Unix and Windows!
1998-04-09 20:37:16 +00:00