summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
Commit message (Collapse)AuthorAgeFilesLines
* Simple changes by Gerrit Holl - move author acknowledgements out ofGuido van Rossum2000-02-281-2/+3
| | | | docstrings into comments.
* print a warning if the password will be echoed.Jeremy Hylton1999-10-181-22/+26
| | | | | | At import time, getpass will be bound to the appropriate platform-specific function. If the platform's echo-disabler is not available, default_getpass, which prints the warning, will be used
* Mod by Jack Jansen: on Macintosh, use EasyDialogs.GetPassword if itGuido van Rossum1999-02-111-1/+8
| | | | exists.
* Do the check for lacking sys.stdin.fileno() *before* testing forGuido van Rossum1998-09-221-4/+4
| | | | | | Windows. If sys.stdin doesn't appear to be a real file (characterized by having a working fileno()), don't use any console specific methods -- go straight to the default.
* When sys.stdin.fileno() doesn't work, fall back to default_getpass()Guido van Rossum1998-09-211-1/+4
| | | | -- don't just die.
* Don't use raw_input() to ask for the password; this puts the passwordGuido van Rossum1998-07-281-2/+17
| | | | in the GNU readline history buffer which is not such a great idea.
* Don't catch interrupts in getpass() -- the finally clause will resetGuido van Rossum1998-06-121-2/+3
| | | | | | | 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).
* Be nicer to systems that have neither termios nor msvcrt.Guido van Rossum1998-04-131-1/+10
|
* Another new utility: getpass() prompts for a password, with echo off.Guido van Rossum1998-04-091-0/+79
Also contains getuser(), which returns the username (not prompting though). These work on Unix and Windows!