commit | 83627ed6d501ba85461a305d20cde3b2dae2c1f1 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Tue Apr 26 21:02:26 2011 +0800 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Tue Apr 26 21:02:26 2011 +0800 |
tree | b511dc7e1c28a81d422cd81e01b1e8595744266a | |
parent | e3685f6b1b27bf089a40a12492f952dda5ff3ea2 [diff] |
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
diff --git a/Lib/getpass.py b/Lib/getpass.py index 4745ea9..2ac6fd7 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py
@@ -62,7 +62,7 @@ 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