From 9659f92d653c79a14edd6bcd967cc1e3028c1d15 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Wed, 14 Jan 2015 08:56:03 +0100 Subject: [PATCH] Python: Python 3 compatibility restored --- autorandr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5