[XML-SIG] xml.xpath.SyntaxException
Alexandre Fayolle
Alexandre.Fayolle@logilab.fr
Fri, 23 Nov 2001 17:24:29 +0100 (CET)
When importing xml.xslt, the following exception is raised:
AttributeError: 'xml.xpath' module has no attribute 'SyntaxException'
I've fixed this by adding the following line to xml/xpath/__init__.py:
from XPathParserBase import SyntaxException
Another solution could be importing SyntaxException from somewhere else in
xslt. However, since xpath.SyntaxException was widely used, I thought the
first way was easier.
I can commit the patch if you think it's correct.
Alexandre Fayolle
--
LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
Narval, the first software agent available as free software (GPL).