summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2011-04-26 12:59:46 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2011-04-26 12:59:46 (GMT)
commit7cfe5f88ce42cd28969605bb0b8df37d0200cf39 (patch)
treefa7ce20173af700de1f11700c5c216094844ccfc /Lib
parentba42fd5801af664060dd90fccc4054b73967944c (diff)
downloadcpython-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')
-rw-r--r--Lib/getpass.py2
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