Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
03040903
Commit
03040903
authored
Sep 02, 2019
by
Nick Mathewson
🥄
Browse files
practracker: handle empty files.
Previously practracker would fail on a file with no lines.
parent
3a296457
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/maint/practracker/metrics.py
View file @
03040903
...
...
@@ -8,6 +8,7 @@ import re
def
get_file_len
(
f
):
"""Get file length of file"""
i
=
-
1
for
i
,
l
in
enumerate
(
f
):
pass
return
i
+
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment