From: Sean M. Graham Date: Sun, 1 Feb 2009 05:13:51 +0000 (-0500) Subject: Accepted patch from Carl Johan Crafoord X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=7fce5f0f25c1887325f41777daae12fcc078a99d;p=oss%2Fljdump.git Accepted patch from Carl Johan Crafoord - 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. --- diff --git a/convertdump.py b/convertdump.py index 106b274..a81b596 100755 --- a/convertdump.py +++ b/convertdump.py @@ -169,7 +169,6 @@ def main(argv): ljElement = outDoc.createElement("livejournal") outDoc.appendChild(ljElement) - entryLimit = 250 currentFileEntry = 0 # start processing entries @@ -178,7 +177,7 @@ def main(argv): 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")