summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Shepherd <ryansh@microsoft.com>2023-03-16 12:56:00 -0700
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-10 16:45:34 +0200
commit1bb849682dbc0b16770b1b059fb5bccf8ee96f52 (patch)
treefb913a3c58e1bb28e3b7c20117d4c09cb49653ec /src
parent3e23b57db5279050b2ecc9ec3bebc3f088619344 (diff)
downloadpip-1bb849682dbc0b16770b1b059fb5bccf8ee96f52.tar.gz
Add explicit lru_cache maxsize for Python 3.7
Diffstat (limited to 'src')
-rw-r--r--src/pip/_internal/utils/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/utils/misc.py b/src/pip/_internal/utils/misc.py
index ff7241539..50c6e77ac 100644
--- a/src/pip/_internal/utils/misc.py
+++ b/src/pip/_internal/utils/misc.py
@@ -295,7 +295,7 @@ def normalize_path(path: str, resolve_symlinks: bool = True) -> str:
return os.path.normcase(path)
-@functools.lru_cache
+@functools.lru_cache(maxsize=128)
def normalize_path_cached(path: str, resolve_symlinks: bool = True) -> str:
"""
Cache the results of normalize_path when called frequently during certain