From: Greg Darke Date: Tue, 2 Sep 2008 22:59:24 +0000 (+1000) Subject: Allow blank lines in batch run files X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/d46149fca14deafda5605c06241733672f6978a2 Allow blank lines in batch run files --- 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