r15291 - meta/scripts - read lines in a tail-compatible way :p

Joshua Sled jsled at cvs.gnucash.org
Mon Jan 1 11:40:10 EST 2007


Author: jsled
Date: 2007-01-01 11:40:09 -0500 (Mon, 01 Jan 2007)
New Revision: 15291
Trac: http://svn.gnucash.org/trac/changeset/15291

Modified:
   meta/scripts/irc_log_htmlizer.py
Log:
read lines in a tail-compatible way :p


Modified: meta/scripts/irc_log_htmlizer.py
===================================================================
--- meta/scripts/irc_log_htmlizer.py	2007-01-01 16:06:50 UTC (rev 15290)
+++ meta/scripts/irc_log_htmlizer.py	2007-01-01 16:40:09 UTC (rev 15291)
@@ -122,7 +122,10 @@
 def main(in_file):
     files = HtmlFiles()
     try:
-        for line in in_file:
+        while True:
+            line = in_file.readline()
+            if line == '':
+                break
             date,time,stmt = log_parse(line)
             files[date].write(date, time, stmt)
     except Exception, e:



More information about the gnucash-changes mailing list