diff options
author | Simon Edwards <s.edwards@ultimaker.com> | 2017-01-17 18:57:37 +0300 |
---|---|---|
committer | Simon Edwards <s.edwards@ultimaker.com> | 2017-01-17 18:57:37 +0300 |
commit | 1b43e4981ed4b6623c9f0553d9269bf07c36ed9e (patch) | |
tree | ab61e4ecb165c3ae33346342cca84670a53d04cb /plugins/X3DReader | |
parent | fb70eb6813de4b7632be0abe7b3d5da82d157a49 (diff) |
Fixes for all of the plugins. Added a script to invoke mypy. (I'm stiiiick of .bat files. They are just broken.)
Diffstat (limited to 'plugins/X3DReader')
-rw-r--r-- | plugins/X3DReader/X3DReader.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/X3DReader/X3DReader.py b/plugins/X3DReader/X3DReader.py index 0a81e98d0d..f78023dfab 100644 --- a/plugins/X3DReader/X3DReader.py +++ b/plugins/X3DReader/X3DReader.py @@ -13,8 +13,10 @@ from UM.Mesh.MeshBuilder import MeshBuilder from UM.Mesh.MeshReader import MeshReader from UM.Scene.SceneNode import SceneNode +MYPY = False try: - import xml.etree.cElementTree as ET + if not MYPY: + import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET |