If sys.stdin is not a tty, fall back to default_getpass after printing
commit905e8b03f93c20a17602dbaafddf977d15cb66e6
authorgregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 21 Apr 2008 21:31:08 +0000 (21 21:31 +0000)
committergregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 21 Apr 2008 21:31:08 +0000 (21 21:31 +0000)
tree471ae93f35cd106c6e0b20f8ebd8b7899fa96b16
parentd5a05301b770e5a020e287f29fb2cb8c19d86104
If sys.stdin is not a tty, fall back to default_getpass after printing
a warning instead of failing with a termios.error.

git-svn-id: http://svn.python.org/projects/python/trunk@62446 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/getpass.py
Misc/NEWS