From 9b54f7454d2dc72cfac8ea708ac69113e2d75a33 Mon Sep 17 00:00:00 2001 From: Alexander Hayden Date: Sat, 2 Feb 2019 10:43:44 -0500 Subject: No more die on empty lines --- update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update.py') diff --git a/update.py b/update.py index c62b02f..373a839 100755 --- a/update.py +++ b/update.py @@ -71,7 +71,7 @@ def read_file(fil): with open(fil) as f: for line in f: string = line.strip().split() - if len(line) >= 1 and line[0] != '#': + if len(line) > 1 and line[0] != '#': # run strip on each element string = tuple(map(lambda x: x.strip(), string)) strings.append(string) -- cgit v1.2.3