def __init__(self, filename_or_stream_or_string):
'Initialize the Stream object.'
self.__stream = []
if isinstance(filename_or_stream_or_string, str):
if _os.path.exists(filename_or_stream_or_string):
_xml_sax.parse(filename_or_stream_or_string, self)
else:
_xml_sax.parseString(filename_or_stream_or_string, self)
else:
_xml_sax.parse(filename_or_stream_or_string, self)
self.__maximized = self.__minimized = False
评论列表
文章目录