def __init__(self, errfp=sys.stderr, codec='utf-8'): WikiTextParser.__init__(self) self.errfp = errfp self.codec = codec return
def close(self): WikiTextParser.close(self) texts = self.convert(self.get_root()) return u''.join(texts)
def __init__(self, errfp=None): WikiTextParser.__init__(self) self.errfp = errfp return
def close(self): WikiTextParser.close(self) return self.convert(self.get_root())