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 Aug 3, 2024
1 parent 1526748 commit 6b2b9ac
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 @@ -630,7 +630,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 6b2b9ac

Please sign in to comment.