Commit 9fa71de0 authored by Vincent Pelletier's avatar Vincent Pelletier

Write a newline when done iterating over lines.

So line count remains visible.
parent 965f6d73
......@@ -475,6 +475,7 @@ def main():
logfile = open(filename)
else:
logfile.seek(0)
lineno = 0
for lineno, line in enumerate(logfile, 1):
if lineno % 5000 == 0:
sys.stderr.write('%i\r' % lineno)
......@@ -512,6 +513,7 @@ def main():
error_detail=error_detail)
site_data.accumulate(match, url_match, date)
all_lines += lineno
sys.stderr.write('%i\n' % lineno)
end_parsing_time = time.time()
os.chdir(args.out)
with open('index.html', 'w') as out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment