[tor-commits] [ooni-probe/master] Skip empty lines.
art at torproject.org
art at torproject.org
Mon Mar 24 15:02:47 UTC 2014
commit f0dbba35fb09a2f4e9b0aba719db553f6247a7dd
Author: Arturo Filastò <art at fuffa.org>
Date: Sun Mar 9 22:50:32 2014 +0100
Skip empty lines.
---
ooni/nettest.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ooni/nettest.py b/ooni/nettest.py
index 943aeba..e9cc43b 100644
--- a/ooni/nettest.py
+++ b/ooni/nettest.py
@@ -704,7 +704,10 @@ class NetTestCase(object):
log.debug("Running default input processor")
with open(filename) as f:
for line in f:
- yield line.strip()
+ l = line.strip()
+ if not l:
+ continue
+ yield l
@property
def inputFileSpecified(self):
More information about the tor-commits
mailing list