import xml.sax.handler
from xml.sax.handler import feature_namespaces
-import texmlwr
-import specmap
-import StringIO
+from Texml import texmlwr
+from Texml import specmap
import string
-import os, sys
# Unbreakable spaces should not be deleted by strip(), but it happens:
# http://uucode.com/blog/2010/06/01/python-wtf-strip-eats-too-much/
else:
msg += '%s not expected' % (local_name)
- raise InvalidXmlException, msg
+ raise InvalidXmlException(msg)
def invalid_xml_other(self, msg):
# for other types of invalid XML
- raise InvalidXmlException, msg
+ raise InvalidXmlException(msg)
# -------------------------------------------------------------------