Commit 03040903 authored by Nick Mathewson's avatar Nick Mathewson
Browse files

practracker: handle empty files.

Previously practracker would fail on a file with no lines.
parent 3a296457
......@@ -8,6 +8,7 @@ import re
def get_file_len(f):
"""Get file length of file"""
i = -1
for i, l in enumerate(f):
return i + 1
Supports Markdown
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