Import lxml locally to avoid hard dependency

The code is used in the Inkscape plugin only.
This commit is contained in:
Florian Festi 2017-03-10 22:55:33 +01:00
parent 4ab1dcc323
commit 121e2107fb
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import xml.parsers.expat
from lxml import etree as et
import re
@ -136,6 +135,8 @@ def ticksPerMM(tree):
return x2/width, y2/height
def svgMerge(box, inkscape, output):
from lxml import etree as et
parser = et.XMLParser(remove_blank_text=True)
src_tree = et.parse(box, parser)