diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/getpass.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py index e811890..eefb1f9 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -42,6 +42,8 @@ def unix_getpass(prompt='Password: '): def win_getpass(prompt='Password: '): """Prompt for password with echo off, using Windows getch().""" + if sys.stdin is not sys.__stdin__: + return default_getpass(prompt) import msvcrt for c in prompt: msvcrt.putch(c) |