]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Python: Python 3 compatibility restored
authorPhillip Berndt <phillip.berndt@googlemail.com>
Wed, 14 Jan 2015 07:56:03 +0000 (08:56 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Wed, 14 Jan 2015 07:56:03 +0000 (08:56 +0100)
autorandr.py

index fd18b15e42360b1ff5060682cab54657b04c656e..1225491d9fc492923159a817d7b026ee142a11bc 100755 (executable)
@@ -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