From: Greg Darke Date: Mon, 8 Sep 2008 08:15:56 +0000 (+1000) Subject: Allow blank lines in batch run scripts X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/0c14a35ffeb1637667d3055686d7e81474603966 Allow blank lines in batch run scripts --- 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