[Python-checkins] cpython (2.7): issue11236 getpass.getpass to respond ctrl-c or ctrl-z
senthil.kumaran
python-checkins at python.org
Tue Apr 26 15:03:07 CEST 2011
http://hg.python.org/cpython/rev/a3b4887edba4
changeset: 69568:a3b4887edba4
branch: 2.7
parent: 69562:3ceeccbc2c3b
user: Senthil Kumaran <orsenthil at gmail.com>
date: Tue Apr 26 21:02:26 2011 +0800
summary:
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
files:
Lib/getpass.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/getpass.py b/Lib/getpass.py
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -62,7 +62,7 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list