From a1346707a14b4f039d0881f86ff6856a4025a974 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sun, 22 Dec 2024 16:19:12 -0500 Subject: [PATCH] perf: Use operator module instead of lambda --- manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage.py b/manage.py index 8cc164d..8328c1f 100755 --- a/manage.py +++ b/manage.py @@ -5,6 +5,7 @@ import re from collections import defaultdict from datetime import timedelta +from operator import itemgetter from pathlib import Path from urllib.parse import urlsplit @@ -37,7 +38,7 @@ def do_build(): versions = frozen_versions # Get the most recent frozen version. We presently have no strategy for choosing between live versions. - version = max(versions, key=lambda version: version["Date"]) + version = max(versions, key=itemgetter("Date")) response = session.get(version["Base URL"] + "extension.json") response.raise_for_status()