Skip to content

Commit 3aec0a3

Browse files
DimitriPapadopoulosabravalheri
authored andcommitted
@functools.lru_cache() → @functools.lru_cache
Starting with Python ≥ 3.8, lru_cache can be used as a straight decorator with no arguments: https://bugs.python.org/issue36772 This is a suggestion from pyupgrade: https://github.com/asottile/pyupgrade#remove-parentheses-from-functoolslru_cache
1 parent 7a85110 commit 3aec0a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/build_launchers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def build_cmake_project_with_msbuild(build_arena, msbuild_parameters):
8686
subprocess.check_call(cmd, cwd=build_arena)
8787

8888

89-
@functools.lru_cache()
89+
@functools.lru_cache
9090
def get_cmake():
9191
"""Find CMake using registry."""
9292
import winreg
@@ -96,7 +96,7 @@ def get_cmake():
9696
return root / 'bin\\CMake.exe'
9797

9898

99-
@functools.lru_cache()
99+
@functools.lru_cache
100100
def get_msbuild():
101101
"""Use VSWhere to find MSBuild."""
102102
vswhere = pathlib.Path(

0 commit comments

Comments
 (0)