[XML-SIG] Question about xml.dom.ext.reader.Sax2

Uche Ogbuji uche.ogbuji@fourthought.com
Mon, 02 Apr 2001 15:01:31 -0600


> 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 ?) python.org/mailman/listinfo/xml-sig

It's a cut-n-paste bug.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python