Import encodings.idna to avoid LookupError when standard library is in a zip file.

pull/1421/head
grossmj 6 years ago
parent 4021a13651
commit 0aa9ab53d1

@ -29,6 +29,10 @@ import functools
import time
import atexit
# Import encoding now, to avoid implicit import later.
# Implicit import within threads may cause LookupError when standard library is in a ZIP
import encodings.idna
from .route import Route
from ..config import Config
from ..compute import MODULES

Loading…
Cancel
Save