Skip to content

Commit 5294e34

Browse files
DefaultRyansbidoul
authored andcommitted
Retry removing the argument from lru_cache
1 parent 4221c23 commit 5294e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/req/req_uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def __init__(self, dist: BaseDistribution) -> None:
316316
# Create local cache of normalize_path results. Creating an UninstallPathSet
317317
# can result in hundreds/thousands of redundant calls to normalize_path with
318318
# the same args, which hurts performance.
319-
self._normalize_path_cached = functools.lru_cache(maxsize=256)(normalize_path)
319+
self._normalize_path_cached = functools.lru_cache()(normalize_path)
320320

321321
def _permitted(self, path: str) -> bool:
322322
"""

0 commit comments

Comments
 (0)