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).
G
Guido van Rossum committed
c3da02e9041cfaf8e6e43b726f23b2676a05eb1a
Parent: e7c4193