X-Git-Url: https://git.mdrn.pl/texml.git/blobdiff_plain/f06bfe769b002b2335a03c7a6c871f2263bef6f6..a25b46f14eae63a90d79da211051eb4f77e620e3:/Texml/handler.py diff --git a/Texml/handler.py b/Texml/handler.py index 32a6118..f6b3031 100644 --- a/Texml/handler.py +++ b/Texml/handler.py @@ -4,11 +4,9 @@ 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/ @@ -256,11 +254,11 @@ class Handler: 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) # -------------------------------------------------------------------