diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-26 21:02:26 +0800 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-26 21:02:26 +0800 |
commit | 6da1f1d0a3c9ca326e9c60b70a54df4d5488d26c (patch) | |
tree | ed18531954d1361af2a6ad3c504dbee6f8dcfe96 | |
parent | 0c6c6472c4a3471c2e8071cfe7ae17f384df3917 (diff) | |
download | cpython-6da1f1d0a3c9ca326e9c60b70a54df4d5488d26c.tar.gz |
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
-rw-r--r-- | Lib/getpass.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |