]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Accept empty lines in setup files
authorPhillip Berndt <phillip.berndt@googlemail.com>
Sat, 7 Mar 2015 17:45:20 +0000 (18:45 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Sat, 7 Mar 2015 17:45:20 +0000 (18:45 +0100)
autorandr.py

index b288e41f914b9ed97e81e176fbb2ac105d9740d8..33e3b2f2ad4c05eab4e096bc3d7b2df6010687e0 100755 (executable)
@@ -351,7 +351,7 @@ def load_profiles(profile_path):
         if not os.path.isfile(config_name) or not os.path.isfile(setup_name):
             continue
 
-        edids = dict([ x.strip().split() for x in open(setup_name).readlines() ])
+        edids = dict([ x.strip().split() for x in open(setup_name).readlines() if x.strip() ])
 
         config = {}
         buffer = []