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 Jul 3, 2024
1 parent c9f3142 commit 40b980c
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 @@ -629,7 +629,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 40b980c

Please sign in to comment.