summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/mailbox.py')
-rw-r--r--Lib/mailbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index a45b3bf3..2049516 100644
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -23,7 +23,7 @@ import io
import contextlib
try:
import fcntl
-except ModuleNotFoundError:
+except ImportError:
fcntl = None
__all__ = [ 'Mailbox', 'Maildir', 'mbox', 'MH', 'Babyl', 'MMDF',