def __init__(self, stream_or_string, **options):
self.rawImportRecordBuffer = []
self.options = options
if isinstance(stream_or_string, six.string_types):
self.stream = six.StringIO(stream_or_string)
else:
self.stream = stream_or_string
self.event_stream = pulldom.parse(self.stream, self._make_parser())
self.thin = options.pop('thin', 0)
评论列表
文章目录