Skip to content

Commit

Permalink
Enforce ruff/refurb rule FURB192
Browse files Browse the repository at this point in the history
FURB192 Prefer `max` over `sorted()` to compute the maximum value in a sequence
  • Loading branch information
DimitriPapadopoulos committed Sep 15, 2024
1 parent e7ebd8a commit 7fa561c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _find_latest_available_vs_ver(self):

vc_vers = set(reg_vc_vers)
vc_vers.update(self.known_vs_paths)
return sorted(vc_vers)[-1]
return max(vc_vers)

def find_reg_vs_vers(self):
"""
Expand Down

0 comments on commit 7fa561c

Please sign in to comment.