]> code.delx.au - transcoding/commitdiff
Allow blank lines in batch run files
authorGreg Darke <greg+pc-3w14-0@tsukasa.net.au>
Tue, 2 Sep 2008 22:59:24 +0000 (08:59 +1000)
committerGreg Darke <greg+pc-3w14-0@tsukasa.net.au>
Tue, 2 Sep 2008 22:59:24 +0000 (08:59 +1000)
batchrun.py

index 49fae6911e8fe12377f5417bdbfc54ab0a083688..ab64380e09f21218fac72b4245a1b370021b279c 100755 (executable)
@@ -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