summaryrefslogtreecommitdiffstats
path: root/table-data
diff options
context:
space:
mode:
Diffstat (limited to 'table-data')
-rwxr-xr-xtable-data11
1 files changed, 5 insertions, 6 deletions
diff --git a/table-data b/table-data
index e67e31a..2fc29e6 100755
--- a/table-data
+++ b/table-data
@@ -91,19 +91,18 @@ if __name__ == '__main__':
ret, data = '', []
start = time()
- # until timeout or EOF (read may block pass the timeout!)
+ # until timeout or EOF/empty line (read may block pass the timeout)
while (time() - start) < timeout:
ret = stdin.readline()
if not ret:
- break
+ break # huh, continue does not work?
data.append(ret)
- if not ret:
- tries += 1
- else:
- tries = 0
if not data:
+ tries += 1
continue
+
+ tries = 0
rows = [row.strip().split(sep) for row in data]
#print 'Without wrapping function\n'