[Python-checkins] cpython: issue11236 getpass.getpass to respond ctrl-c or ctrl-z (original) (raw)
senthil.kumaran python-checkins at python.org
Thu Mar 24 15:27:16 CET 2011
- Previous message: [Python-checkins] r88800 - tracker/instances/python-dev/html/user.item.html
- Next message: [Python-checkins] cpython (3.2): Add tests for the atexit hook in concurrent.futures (part of #11635)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-checkins] r88800 - tracker/instances/python-dev/html/user.item.html
- Next message: [Python-checkins] cpython (3.2): Add tests for the atexit hook in concurrent.futures (part of #11635)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]