diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2011-03-24 14:27:01 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2011-03-24 14:27:01 (GMT) |
commit | ea8b024d11093c1e4768635f118826f5a982a303 (patch) | |
tree | 0f775245d124714d410d8b809f55391481ecf9c6 /Lib/getpass.py | |
parent | e6ead3905d5ab9941a222f317b8282a326eb0d14 (diff) | |
download | cpython-ea8b024d11093c1e4768635f118826f5a982a303.zip cpython-ea8b024d11093c1e4768635f118826f5a982a303.tar.gz cpython-ea8b024d11093c1e4768635f118826f5a982a303.tar.bz2 |
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
Diffstat (limited to 'Lib/getpass.py')
-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 ce04566..dc02bd1 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 |