[XML-SIG] 0.6.4: problems with sax exceptions
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sat, 3 Mar 2001 09:10:01 +0100
> It looks like the objects that get followed to get this information
> get deleted during the stack unwind.
>
> Here's an attempt at a fix:
Thanks, committed as-is.
> *** xml/parsers/xmlproc/xmlval.py-orig2 Fri Mar 2 19:55:03 2001
> --- xml/parsers/xmlproc/xmlval.py Fri Mar 2 19:55:33 2001
> ***************
> *** 26,31 ****
> --- 26,32 ----
> self.app=Application()
> self.dtd=CompleteDTD(self.parser)
> self.val=ValidatingApp(self.dtd,self.parser)
> + self.current_sysID = "Unknown"
> self.reset()
>
> def parse_resource(self,sysid):
> ***************
> *** 99,104 ****
> --- 100,106 ----
> self.parser.parseEnd()
>
> def read_from(self,file,bufsize=16384):
> + self.parser.current_sysID = self.current_sysID
> self.parser.read_from(file,bufsize)
>
> def flush(self):
That did not seem right. Instead, I've used set_sysid throughout.
Regards,
Martin