[Python-checkins] CVS: python/dist/src/Lib getpass.py,1.13,1.14
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 30 Aug 2001 08:07:46 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv28710
Modified Files:
getpass.py
Log Message:
win_getpass(): if sys.stdin is not sys.__stdin__, use
default_getpass(). This should prevent hanging when it is called in
IDLE.
Fixes SF bug #455648.
Index: getpass.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/getpass.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** getpass.py 2001/08/13 15:30:22 1.13
--- getpass.py 2001/08/30 15:07:44 1.14
***************
*** 43,46 ****
--- 43,48 ----
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: