From 7fce5f0f25c1887325f41777daae12fcc078a99d Mon Sep 17 00:00:00 2001 From: "Sean M. Graham" Date: Sun, 1 Feb 2009 00:13:51 -0500 Subject: [PATCH] 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. --- convertdump.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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") -- 2.39.5