diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-04-21 21:31:08 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-04-21 21:31:08 (GMT) |
commit | 41e30183367e52450fdf7316cf32bfa4e9a78afc (patch) | |
tree | f643e5118416fb35af9d9d17b022d43d5f110652 /Misc | |
parent | aa3cadb01e47719b9f8b7401cdbd32791b5e16f7 (diff) | |
download | cpython-41e30183367e52450fdf7316cf32bfa4e9a78afc.zip cpython-41e30183367e52450fdf7316cf32bfa4e9a78afc.tar.gz cpython-41e30183367e52450fdf7316cf32bfa4e9a78afc.tar.bz2 |
If sys.stdin is not a tty, fall back to default_getpass after printing
a warning instead of failing with a termios.error.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -37,6 +37,9 @@ Extensions Modules Library ------- +- getpass.getpass() now works when sys.stdin is not a tty by printing a warning + and falling back to sys.stdin.readline instead of raising termios.error. + - Issue #2014: Allow XML-RPC datetime objects to have dates before 1900-01-01. |