Skip to content
This repository was archived by the owner on Jan 12, 2018. It is now read-only.

Commit 3b6cf68

Browse files
committed
Merge pull request #13 from djinn/patch-1
Using standard xml.etree by default and fallback to lxml if that is not ...
2 parents 53a0e3d + f86d3f8 commit 3b6cf68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
'''
99

1010
import logging
11-
from lxml import etree
11+
try:
12+
from xml.etree import ElementTree as etree
13+
except ImportError:
14+
from lxml import etree
1215
try:
1316
from PIL import Image
1417
except ImportError:

0 commit comments

Comments
 (0)