changeset 3:11e11e5c0c48

continue on blank lines
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 18 Sep 2011 10:41:18 -0700
parents 0c344ed749ac
children a984091d681a
files fetch/main.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fetch/main.py	Sun Sep 18 10:40:06 2011 -0700
+++ b/fetch/main.py	Sun Sep 18 10:41:18 2011 -0700
@@ -102,8 +102,8 @@
   for manifest in manifests:
     for line in file(i).readlines():
       line = line.strip()
-      if line.startswith('#'):
-        pass
+      if line.startswith('#') or not line:
+        continue
       line = line.split()
       if len(line) not in (3,4):
         raise Exception("Format should be: %s; line %s" % (format_string, line))