From 79ac1a34b42eb3f14439f17f4457f75748a84d9a Mon Sep 17 00:00:00 2001
From: Don Armstrong <don@donarmstrong.com>
Date: Thu, 21 Dec 2017 17:47:25 -0800
Subject: [PATCH] sorted should only take one argument in key

---
 autorandr.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autorandr.py b/autorandr.py
index 6bebefc..05b2a5c 100755
--- a/autorandr.py
+++ b/autorandr.py
@@ -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
-- 
2.39.5