[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Skip empty lines.
commit f0dbba35fb09a2f4e9b0aba719db553f6247a7dd
Author: Arturo Filastò <art@xxxxxxxxx>
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):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits