summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Shepherd <ryansh@microsoft.com>2023-03-30 14:43:37 -0700
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-10 16:45:34 +0200
commit5294e34fa116784fb5b7f08a857eededc8594a7c (patch)
tree1c5ef9f6160110c2c0aa5aefe8921a81bec6d5b3 /src
parent4221c23a2bbd678cc3e41b4d84bad1a90cedc856 (diff)
downloadpip-5294e34fa116784fb5b7f08a857eededc8594a7c.tar.gz
Retry removing the argument from lru_cache
Diffstat (limited to 'src')
-rw-r--r--src/pip/_internal/req/req_uninstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/req/req_uninstall.py b/src/pip/_internal/req/req_uninstall.py
index 02df22f06..65c9fc49f 100644
--- a/src/pip/_internal/req/req_uninstall.py
+++ b/src/pip/_internal/req/req_uninstall.py
@@ -316,7 +316,7 @@ class UninstallPathSet:
# Create local cache of normalize_path results. Creating an UninstallPathSet
# can result in hundreds/thousands of redundant calls to normalize_path with
# the same args, which hurts performance.
- self._normalize_path_cached = functools.lru_cache(maxsize=256)(normalize_path)
+ self._normalize_path_cached = functools.lru_cache()(normalize_path)
def _permitted(self, path: str) -> bool:
"""