summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2011-04-26 21:02:26 +0800
committerSenthil Kumaran <orsenthil@gmail.com>2011-04-26 21:02:26 +0800
commit6da1f1d0a3c9ca326e9c60b70a54df4d5488d26c (patch)
treeed18531954d1361af2a6ad3c504dbee6f8dcfe96 /Lib
parent0c6c6472c4a3471c2e8071cfe7ae17f384df3917 (diff)
downloadcpython-6da1f1d0a3c9ca326e9c60b70a54df4d5488d26c.tar.gz
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 4745ea944c..2ac6fd7f38 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