[XML-SIG] Question about xml.dom.ext.reader.Sax2
Alexandre Fayolle
Alexandre.Fayolle@logilab.fr
Mon, 2 Apr 2001 19:12:34 +0200 (CEST)
Hello,
I've noticed the following lines of codes in Sax2.py, class Reader (this
is line 288 to 293, from the file shipping with 4Suite 0.10.2, in method
Reader.__init__):
self.parser.setProperty(handler.property_lexical_handler,
self.handler)
try:
self.parser.setProperty(handler.property_declaration_handler,
self.handler)
except:
pass
Am I missing something obvious, or should the first line be deleted (I
mean, if there is a chance that the third line raise an exception, it will
presumably have been thrown on the first time the call is made, or are
there some weird side effects that I'm not aware of ?)
Cheers,
Alexandre Fayolle
--
http://www.logilab.com
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).