summaryrefslogtreecommitdiff
path: root/Lib/http/cookiejar.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/http/cookiejar.py
parent87407f5d891b20af9b7ef9ae0cb728210784581f (diff)
downloadcpython-dfd87ef593fcae1f252092348479d456375552fc.tar.gz
Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
Diffstat (limited to 'Lib/http/cookiejar.py')
-rw-r--r--Lib/http/cookiejar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index be828eba69..fd40ee04a7 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -35,7 +35,7 @@ import time
import urllib.parse, urllib.request
try:
import threading as _threading
-except ImportError:
+except ModuleNotFoundError:
import dummy_threading as _threading
import http.client # only for the default HTTP port
from calendar import timegm