From: Phillip Berndt Date: Sat, 7 Mar 2015 17:45:20 +0000 (+0100) Subject: Accept empty lines in setup files X-Git-Tag: 1.0~73 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=dc8d21a3c9726459c91f5c290a52eb4acedb4129 Accept empty lines in setup files --- diff --git a/autorandr.py b/autorandr.py index b288e41..33e3b2f 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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 = []