From 6da1f1d0a3c9ca326e9c60b70a54df4d5488d26c Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Tue, 26 Apr 2011 21:02:26 +0800 Subject: issue11236 getpass.getpass to respond ctrl-c or ctrl-z --- Lib/getpass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib') diff --git a/Lib/getpass.py b/Lib/getpass.py index 4745ea944c..2ac6fd7f38 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -62,7 +62,7 @@ def unix_getpass(prompt='Password: ', stream=None): try: old = termios.tcgetattr(fd) # a copy to save new = old[:] - new[3] &= ~(termios.ECHO|termios.ISIG) # 3 == 'lflags' + new[3] &= ~termios.ECHO # 3 == 'lflags' tcsetattr_flags = termios.TCSAFLUSH if hasattr(termios, 'TCSASOFT'): tcsetattr_flags |= termios.TCSASOFT -- cgit v1.2.1