From d46149fca14deafda5605c06241733672f6978a2 Mon Sep 17 00:00:00 2001 From: Greg Darke Date: Wed, 3 Sep 2008 08:59:24 +1000 Subject: [PATCH] Allow blank lines in batch run files --- batchrun.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/batchrun.py b/batchrun.py index 49fae69..ab64380 100755 --- a/batchrun.py +++ b/batchrun.py @@ -21,6 +21,8 @@ def getblocks(fd): return level for line in fd: + if not line.strip(): + continue # Ignore blank lines level = _countIndentationLevel(line) line = line[level:] # Slice off the indentation yield level, line -- 2.39.2