summaryrefslogtreecommitdiff
path: root/xhtml2odt/xhtml2odt.py
diff options
context:
space:
mode:
Diffstat (limited to 'xhtml2odt/xhtml2odt.py')
-rwxr-xr-xxhtml2odt/xhtml2odt.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/xhtml2odt/xhtml2odt.py b/xhtml2odt/xhtml2odt.py
index b8ebc38de..aa387d54e 100755
--- a/xhtml2odt/xhtml2odt.py
+++ b/xhtml2odt/xhtml2odt.py
@@ -106,7 +106,11 @@ import mimetypes
from StringIO import StringIO
from optparse import OptionParser
-import tidy
+try:
+ import tidy
+except:
+ from tidylib import tidy_document as tidy
+
from lxml import etree
from PIL import Image