def __init__(self):
self.nodetree = [] #tree that will contain the elements for the .mm output file
self.nodetree.append("") #initialise tree
self.previous_level = 0 #initialise depth control
# def open(self, inputfile):
# """ get opml data and load into ElementTree tree """
# if inputfile.endswith('.opml'):
# try:
# # self.tree = ET.parse(inputfile)
# return self.tree
# except:
# print "Cannot open file "+inputfile+'\n' \
# "File may not exist or file may not be a valid xml file\n" \
# "\nUSAGE\n"
# closedown()
评论列表
文章目录