Skip to content

Commit 1bb8496

Browse files
DefaultRyansbidoul
authored andcommitted
Add explicit lru_cache maxsize for Python 3.7
1 parent 3e23b57 commit 1bb8496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def normalize_path(path: str, resolve_symlinks: bool = True) -> str:
295295
return os.path.normcase(path)
296296

297297

298-
@functools.lru_cache
298+
@functools.lru_cache(maxsize=128)
299299
def normalize_path_cached(path: str, resolve_symlinks: bool = True) -> str:
300300
"""
301301
Cache the results of normalize_path when called frequently during certain

0 commit comments

Comments
 (0)