Fixed utf8 parsing for python 2.0

svn: r93
This commit is contained in:
Unknown 2001-06-06 04:36:51 +00:00
parent 8cf0cc6ddd
commit 666722bb4b

View File

@ -876,7 +876,6 @@ class GrampsParser(handler.ContentHandler):
#
#
#---------------------------------------------------------------------
if sax == 1:
def endElement(self,tag):
@ -885,18 +884,11 @@ class GrampsParser(handler.ContentHandler):
self.func_index = self.func_index - 1
self.func,self.data = self.func_list[self.func_index]
if sax == 1:
def characters(self, data, offset, length):
if self.func:
self.data = self.data + data
else:
def endElement(self,tag):
if self.func:
self.func(self,self.data)
self.func_index = self.func_index - 1
self.func,self.data = self.func_list[self.func_index]
def characters(self, data):
if self.func:
self.data = self.data + data