]> granicus.if.org Git - python/commit
Don't catch interrupts in getpass() -- the finally clause will reset
authorGuido van Rossum <guido@python.org>
Fri, 12 Jun 1998 14:28:38 +0000 (14:28 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 12 Jun 1998 14:28:38 +0000 (14:28 +0000)
commitc3da02e9041cfaf8e6e43b726f23b2676a05eb1a
treef2345998fdadc8cf2a78f5eddcb8985916a535b3
parente7c4193755843e308df180f3014cea214fbf6dc5
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).
Lib/getpass.py