commit | c3da02e9041cfaf8e6e43b726f23b2676a05eb1a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jun 12 14:28:38 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jun 12 14:28:38 1998 +0000 |
tree | f2345998fdadc8cf2a78f5eddcb8985916a535b3 | |
parent | e7c4193755843e308df180f3014cea214fbf6dc5 [diff] |
Don't catch interrupts in getpass() -- the finally clause will reset the tty and the caller can deal with the interrupt. In the windows version, recognize ^C and raise KeyboardInterrupt (not sure if this is needed, but can't hurt).