make plugins loader Python 3.5 compatible again (#69754)
ModuleNotFoundError was only introduced in Python 3.6
This commit is contained in:
parent
ee1625f906
commit
53f9822e75
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue