[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z
Steffen Daode Nurpmeso
report at bugs.python.org
Sat Mar 19 23:46:34 CET 2011
Steffen Daode Nurpmeso <sdaoden at googlemail.com> added the comment:
The attached 11236.depend.patch updates Merlijn's patch so that it
applies cleanly just in case the #11466.5.patch is used in the end.
----------
Added file: http://bugs.python.org/file21298/11236.depend.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11236>
_______________________________________
-------------- next part --------------
diff --git a/Lib/getpass.py b/Lib/getpass.py
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -60,7 +60,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
More information about the Python-bugs-list
mailing list