- Removed unused "entryLimit" default value, since it was always
overridden by the required cli argument.
- Removed condition where the last few entries wouldn't be written out
to disk.
ljElement = outDoc.createElement("livejournal")
outDoc.appendChild(ljElement)
- entryLimit = 250
currentFileEntry = 0
# start processing entries
currentFileEntry += 1
- if( currentFileEntry == entryLimit ):
+ if( currentFileEntry == entryLimit or entry == entryArray[-1] ):
f = open("%s - %s.xml" % (username, entry), "w")
tempXML = outDoc.toxml("UTF-8")