commit | ea8b024d11093c1e4768635f118826f5a982a303 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Thu Mar 24 22:27:01 2011 +0800 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Thu Mar 24 22:27:01 2011 +0800 |
tree | 0f775245d124714d410d8b809f55391481ecf9c6 | |
parent | e6ead3905d5ab9941a222f317b8282a326eb0d14 [diff] [blame] |
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