(original) (raw)

changeset: 68892:c177faafec51 user: Senthil Kumaran orsenthil@gmail.com date: Thu Mar 24 22:27:01 2011 +0800 files: Lib/getpass.py description: issue11236 getpass.getpass to respond ctrl-c or ctrl-z diff -r 0937b3618b86 -r c177faafec51 Lib/getpass.py --- a/Lib/getpass.py Thu Mar 24 11:47:29 2011 +0800 +++ b/Lib/getpass.py Thu Mar 24 22:27:01 2011 +0800 @@ -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 /orsenthil@gmail.com