summaryrefslogtreecommitdiff
path: root/Lib/getpass.py
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
commit83627ed6d501ba85461a305d20cde3b2dae2c1f1 (patch)
treeb511dc7e1c28a81d422cd81e01b1e8595744266a /Lib/getpass.py
parente3685f6b1b27bf089a40a12492f952dda5ff3ea2 (diff)
downloadcpython-git-83627ed6d501ba85461a305d20cde3b2dae2c1f1.tar.gz
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
Diffstat (limited to 'Lib/getpass.py')
-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