[XML-SIG] Bug in sgmlop?

Walter Dörwald walter@bnbt.de
Fri, 26 May 2000 16:27:02 +0200


Hello all!

I'm having a little problem with sgmlop from
the 0.5.4 release. sgmlop seems to drop the
last character in the string passed to parse:

import sgmlop

class handler:
    def handle_data(self,data):
       print repr(data)

parser = sgmlop.SGMLParser()
parser.register(handler())
parser.parse("gurk")
parser.close()

This script outputs 'gur' instead of 'gurk'.

Bye,
	Walter Dörwald