Fixes for all of the plugins. Added a script to invoke mypy. (I'm stiiiick of .bat files. They are just broken.)

This commit is contained in:
Simon Edwards 2017-01-17 16:57:37 +01:00
parent fb70eb6813
commit 1b43e4981e
12 changed files with 62 additions and 20 deletions

View file

@ -7,8 +7,10 @@ from UM.Logger import Logger
from UM.Math.Matrix import Matrix
from UM.Application import Application
MYPY = False
try:
import xml.etree.cElementTree as ET
if not MYPY:
import xml.etree.cElementTree as ET
except ImportError:
Logger.log("w", "Unable to load cElementTree, switching to slower version")
import xml.etree.ElementTree as ET