VOOZH about

URL: https://mail.python.org/pipermail/python-checkins/2011-March/103828.html

⇱ [Python-checkins] cpython: issue11236 getpass.getpass to respond ctrl-c or ctrl-z


[Python-checkins] cpython: issue11236 getpass.getpass to respond ctrl-c or ctrl-z

senthil.kumaran python-checkins at python.org
Thu Mar 24 15:27:16 CET 2011
http://hg.python.org/cpython/rev/c177faafec51
changeset: 68892:c177faafec51
user: Senthil Kumaran <orsenthil at gmail.com>
date: Thu Mar 24 22:27:01 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