3MF_Reader: Optionally use cElementTree

This should make reading the XML faster
This commit is contained in:
Thomas Karl Pietrowski 2016-07-27 20:16:12 +02:00
parent d96ce760f8
commit 4dbe895c15

View file

@ -19,7 +19,10 @@ catalog = i18nCatalog("cura")
import math import math
import zipfile import zipfile
import xml.etree.ElementTree as ET try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
## Base implementation for reading 3MF files. Has no support for textures. Only loads meshes! ## Base implementation for reading 3MF files. Has no support for textures. Only loads meshes!
class ThreeMFReader(MeshReader): class ThreeMFReader(MeshReader):