[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Add a method for line by line asset parsing
commit 2d4a3b82d982017fe51e2dd23eca7f1d83ad115f
Author: Arturo Filastò <hellais@xxxxxxxxx>
Date: Wed Mar 14 23:25:05 2012 -0700
Add a method for line by line asset parsing
---
plugoo/assets.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/plugoo/assets.py b/plugoo/assets.py
index 2d1e6d1..eded997 100644
--- a/plugoo/assets.py
+++ b/plugoo/assets.py
@@ -41,7 +41,9 @@ class Asset:
# clean me up please...
line = self.fh.readline()
if line:
- return self.parse_line(line)
+ parsed_line = self.parse_line(line)
+ if parsed_line:
+ return parsed_line
else:
self.fh.seek(0)
raise StopIteration
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits