From: Phillip Berndt Date: Wed, 14 Jan 2015 07:56:03 +0000 (+0100) Subject: Python: Python 3 compatibility restored X-Git-Tag: 1.0~107 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9659f92d653c79a14edd6bcd967cc1e3028c1d15;p=deb_pkgs%2Fautorandr.git Python: Python 3 compatibility restored --- diff --git a/autorandr.py b/autorandr.py index fd18b15..1225491 100755 --- a/autorandr.py +++ b/autorandr.py @@ -322,8 +322,8 @@ def load_profiles(profile_path): else: buffer.append(line) - for output_name, output in config.items(): - if "off" in output.options: + for output_name in list(config.keys()): + if "off" in config[output_name].options: del config[output_name] profiles[profile] = config