diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-26 12:59:46 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-26 12:59:46 (GMT) |
commit | 7cfe5f88ce42cd28969605bb0b8df37d0200cf39 (patch) | |
tree | fa7ce20173af700de1f11700c5c216094844ccfc /Lib/getpass.py | |
parent | ba42fd5801af664060dd90fccc4054b73967944c (diff) | |
download | cpython-7cfe5f88ce42cd28969605bb0b8df37d0200cf39.zip cpython-7cfe5f88ce42cd28969605bb0b8df37d0200cf39.tar.gz cpython-7cfe5f88ce42cd28969605bb0b8df37d0200cf39.tar.bz2 |
Fix for 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 |