commit | 7cfe5f88ce42cd28969605bb0b8df37d0200cf39 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Tue Apr 26 20:59:46 2011 +0800 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Tue Apr 26 20:59:46 2011 +0800 |
tree | fa7ce20173af700de1f11700c5c216094844ccfc | |
parent | ba42fd5801af664060dd90fccc4054b73967944c [diff] [blame] |
Fix for issue11236 getpass.getpass to respond ctrl-c or ctrl-z
diff --git a/Lib/getpass.py b/Lib/getpass.py index ce04566..dc02bd1 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