]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
sorted should only take one argument in key fix_two_argument_key
authorDon Armstrong <don@donarmstrong.com>
Fri, 22 Dec 2017 01:47:25 +0000 (17:47 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 22 Dec 2017 01:52:45 +0000 (17:52 -0800)
autorandr.py

index 6bebefc68b09d655dd60f46295aca0be2da39bf9..05b2a5c6c8bed96b8ca7c0e7138a1f049b93529e 100755 (executable)
@@ -768,7 +768,7 @@ def generate_virtual_profile(configuration, modes, profile_name):
         for output in configuration:
             configuration[output].options = {}
             if output in modes and configuration[output].edid:
-                def key(a, b):
+                def key(a):
                     score = int(a["width"]) * int(a["height"])
                     if a["preferred"]:
                         score += 10**6
@@ -788,7 +788,7 @@ def generate_virtual_profile(configuration, modes, profile_name):
         for output in configuration:
             configuration[output].options = {}
             if output in modes and configuration[output].edid:
-                def key(a, b):
+                def key(a):
                     score = int(a["width"]) * int(a["height"])
                     if a["preferred"]:
                         score += 10**6