summaryrefslogtreecommitdiff
path: root/Lib/getpass.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-13 20:57:26 -0400
committerBrett Cannon <brett@python.org>2013-06-13 20:57:26 -0400
commitdfd87ef593fcae1f252092348479d456375552fc (patch)
tree9b2837665fa5a4027ac58d40eb6675d4249a4a4d /Lib/getpass.py
parent87407f5d891b20af9b7ef9ae0cb728210784581f (diff)
downloadcpython-dfd87ef593fcae1f252092348479d456375552fc.tar.gz
Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r--Lib/getpass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 6ec6c78824..ed9bc5901d 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -164,7 +164,7 @@ try:
except (ImportError, AttributeError):
try:
import msvcrt
- except ImportError:
+ except ModuleNotFoundError:
getpass = fallback_getpass
else:
getpass = win_getpass