make plugins loader Python 3.5 compatible again (#69754)

ModuleNotFoundError was only introduced in Python 3.6
This commit is contained in:
Evgeni Golov 2020-05-29 21:37:52 +02:00 committed by GitHub
parent ee1625f906
commit 53f9822e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,11 @@ try:
imp = None imp = None
except ImportError: except ImportError:
import imp import imp
try:
ModuleNotFoundError
except NameError:
# this was introduced in Python 3.6
ModuleNotFoundError = None ModuleNotFoundError = None
display = Display() display = Display()