Remove unused argument.

This commit is contained in:
Chris Hunt 2019-09-15 17:02:16 -04:00
parent 48be7eb5e3
commit fb7b6329e6
1 changed files with 3 additions and 3 deletions

View File

@ -549,8 +549,8 @@ class SafeFileCache(BaseCache):
not be accessible or writable.
"""
def __init__(self, directory, use_dir_lock=False):
# type: (str, bool) -> None
def __init__(self, directory):
# type: (str) -> None
assert directory is not None, "Cache directory must not be None."
super(SafeFileCache, self).__init__()
self.directory = directory
@ -661,7 +661,7 @@ class PipSession(requests.Session):
# require manual eviction from the cache to fix it.
if cache:
secure_adapter = CacheControlAdapter(
cache=SafeFileCache(cache, use_dir_lock=True),
cache=SafeFileCache(cache),
max_retries=retries,
)
else: