From: Don Armstrong Date: Fri, 22 Dec 2017 01:47:25 +0000 (-0800) Subject: sorted should only take one argument in key X-Git-Tag: 1.4~1^2 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=79ac1a34b42eb3f14439f17f4457f75748a84d9a sorted should only take one argument in key --- 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